Dynomotion

Group: DynoMotion Message: 5462 From: michaelthomasn Date: 7/26/2012
Subject: Mach 3 Spindle struggle
Tom,

I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.

I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.

The machine jogs and homes just fine, but I cannot get the spindle to work properly.

After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.

I have attached my XML and spindle prog in my folder.

Please help.....I've tried most everything.

http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/

Mike
Group: DynoMotion Message: 5463 From: Tom Kerekes Date: 7/26/2012
Subject: Re: Mach 3 Spindle struggle
Hi Mike,
 
Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.  Switch relays or whatever.  I assume your spindle can jog + and - like an servo?  I've uploaded a file to your folder that may work for you.
 
The XML file doesn't seem to have any Dynomotion Configuration in it.  Did you upload the right file?  Did you save the Mach3 Settings?
 
You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
 
Let me know haw far this gets you.
 
Regards
TK

Group: DynoMotion Message: 5464 From: michaelthomasn Date: 7/26/2012
Subject: Re: Mach 3 Spindle struggle
Oh....Ok. It works great as far as direction goes, now.

I don't know what I saved/sent.....I thought it was right, but obviously not.

Accurate speed is now what I'm after.

My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.

So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?

How do I set up the spindle in Mach motor config?

What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.

Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.

I messed with it for a bit but didn't seem to make much headway.

Thanks again,

Mike


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Mike,
>  
> Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.  Switch relays or whatever.  I assume your spindle can jog + and - like an servo?  I've uploaded a file to your folder that may work for you.
>  
> The XML file doesn't seem to have any Dynomotion Configuration in it.  Did you upload the right file?  Did you save the Mach3 Settings?
>  
> You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
>  
> Let me know haw far this gets you.
>  
> Regards
> TK
>
> From: michaelthomasn <michaelniksch@...>
> To: DynoMotion@yahoogroups.com
> Sent: Thursday, July 26, 2012 3:12 PM
> Subject: [DynoMotion] Mach 3 Spindle struggle
>
>
>  
> Tom,
>
> I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
>
> I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
>
> The machine jogs and homes just fine, but I cannot get the spindle to work properly.
>
> After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
>
> I have attached my XML and spindle prog in my folder.
>
> Please help.....I've tried most everything.
>
> http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
>
> Mike
>
Group: DynoMotion Message: 5465 From: michaelthomasn Date: 7/27/2012
Subject: Re: Mach 3 Spindle struggle
Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.

I hope that is right.

Its working right so far.

On to the rigid tap journey.

Thanks,

Mike
--- In DynoMotion@yahoogroups.com, "michaelthomasn" <michaelniksch@...> wrote:
>
>
> Oh....Ok. It works great as far as direction goes, now.
>
> I don't know what I saved/sent.....I thought it was right, but obviously not.
>
> Accurate speed is now what I'm after.
>
> My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
>
> So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
>
> How do I set up the spindle in Mach motor config?
>
> What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
>
> Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
>
> I messed with it for a bit but didn't seem to make much headway.
>
> Thanks again,
>
> Mike
>
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Mike,
> >  
> > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.  Switch relays or whatever.  I assume your spindle can jog + and - like an servo?  I've uploaded a file to your folder that may work for you.
> >  
> > The XML file doesn't seem to have any Dynomotion Configuration in it.  Did you upload the right file?  Did you save the Mach3 Settings?
> >  
> > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> >  
> > Let me know haw far this gets you.
> >  
> > Regards
> > TK
> >
> > From: michaelthomasn <michaelniksch@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Thursday, July 26, 2012 3:12 PM
> > Subject: [DynoMotion] Mach 3 Spindle struggle
> >
> >
> >  
> > Tom,
> >
> > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> >
> > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> >
> > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> >
> > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> >
> > I have attached my XML and spindle prog in my folder.
> >
> > Please help.....I've tried most everything.
> >
> > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> >
> > Mike
> >
>
Group: DynoMotion Message: 5466 From: Tom Kerekes Date: 7/27/2012
Subject: Re: Mach 3 Spindle struggle
Hi Mike,
 
I'm not sure I follow all that.  But if your happy, I'm happy.
 
Regards
TK

Group: DynoMotion Message: 5467 From: michaelthomasn Date: 7/27/2012
Subject: Re: Mach 3 Spindle struggle
Tom,

I mean I did not set up the spindle as a motor output in Mach.


I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.

If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.

So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.

I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?



Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.



Let me know what you think.

Thanks,

Mike






--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Mike,
>  
> I'm not sure I follow all that.  But if your happy, I'm happy.
>  
> Regards
> TK
>
> From: michaelthomasn <michaelniksch@...>
> To: DynoMotion@yahoogroups.com
> Sent: Friday, July 27, 2012 8:09 AM
> Subject: [DynoMotion] Re: Mach 3 Spindle struggle
>
>
>  
>
> Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
>
> I hope that is right.
>
> Its working right so far.
>
> On to the rigid tap journey.
>
> Thanks,
>
> Mike
> --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> >
> >
> > Oh....Ok. It works great as far as direction goes, now.
> >
> > I don't know what I saved/sent.....I thought it was right, but obviously not.
> >
> > Accurate speed is now what I'm after.
> >
> > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> >
> > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> >
> > How do I set up the spindle in Mach motor config?
> >
> > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> >
> > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> >
> > I messed with it for a bit but didn't seem to make much headway.
> >
> > Thanks again,
> >
> > Mike
> >
> >
> > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Mike,
> > >  
> > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.  Switch relays or whatever.  I assume your spindle can jog + and - like an servo?  I've uploaded a file to your folder that may work for you.
> > >  
> > > The XML file doesn't seem to have any Dynomotion Configuration in it.  Did you upload the right file?  Did you save the Mach3 Settings?
> > >  
> > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > >  
> > > Let me know haw far this gets you.
> > >  
> > > Regards
> > > TK
> > >
> > > From: michaelthomasn <michaelniksch@>
> > > To: mailto:DynoMotion%40yahoogroups.com
> > > Sent: Thursday, July 26, 2012 3:12 PM
> > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > >
> > >
> > >  
> > > Tom,
> > >
> > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > >
> > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > >
> > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > >
> > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > >
> > > I have attached my XML and spindle prog in my folder.
> > >
> > > Please help.....I've tried most everything.
> > >
> > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > >
> > > Mike
> > >
> >
>
Group: DynoMotion Message: 5468 From: Tom Kerekes Date: 7/27/2012
Subject: Re: Mach 3 Spindle struggle
Hi Mike,
 
I would just add the X plunge in GCode before doing the Rigid Tap operation.  Shouldn't that work for you?  That might delay a bit after the X plunge before the Spindle starts rotating.  Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point. 
 
To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program. 
 
 // retract fully
DoTap(-ZDist, RetractRate, TPI);
and also add the +ZDist as shown below
 
Delay_sec(1.0);
Move(ZAXIS,Z0+ZDist);   // move to where we ended up
while (!CheckDone(ZAXIS)) ;
Let me know how much of this works :}
 
TK
 

Group: DynoMotion Message: 5469 From: Michael Niksch Date: 7/27/2012
Subject: Re: Mach 3 Spindle struggle
Tom,

Yes, adding code before and after should be fine.  I will remove the lines you suggested and give it a go Monday morning.

Thanks very much,

Mike

On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@...> wrote:

 

Hi Mike,
 
I would just add the X plunge in GCode before doing the Rigid Tap operation.  Shouldn't that work for you?  That might delay a bit after the X plunge before the Spindle starts rotating.  Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point. 
 
To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program. 
 
 // retract fully
DoTap(-ZDist, RetractRate, TPI);
and also add the +ZDist as shown below
 
Delay_sec(1.0);
Move(ZAXIS,Z0+ZDist);   // move to where we ended up
while (!CheckDone(ZAXIS)) ;
Let me know how much of this works :}
 
TK
 

Group: DynoMotion Message: 5470 From: michaelthomasn Date: 7/28/2012
Subject: Re: Mach 3 Spindle struggle
Tom,

I made the adjustments you suggested to the notifytap program, and I could not get it to run the tap sequence. It would position itself in preparation, then just skip over the tap part and move on to the code after.

I fiddled around with it and just ended up adding some lines in the c program to do the retract. It seems to work ok. I uploaded the c prog and my XML to my folder. Could you let me know if it is an acceptable way to do the retract?

Also, an odd thing happens when using the edit button in Mach. I press the button, and it brings up the txt file. I make my adjustment, save it, and when I close the file the program immediately runs in mach without my consent. If I hit the emergency stop, the program stops.....but when I re-initialize it will start again where it was when I hit the E-stop. I wonder if this is just some weird anomaly in MachTurn. I am using 3.043.062....because I heard that the lockdown version had problems in Turn. Maybe I should try the lockdown.

Any ideas on that?

Thanks,

Mike







--- In DynoMotion@yahoogroups.com, Michael Niksch <michaelniksch@...> wrote:
>
> Tom,
>
> Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
>
> Thanks very much,
>
> Mike
>
> On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@...> wrote:
>
> > Hi Mike,
> >
> > I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
> >
> > To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
> >
> > // retract fully
> > DoTap(-ZDist, RetractRate, TPI);
> > and also add the +ZDist as shown below
> >
> > Delay_sec(1.0);
> > Move(ZAXIS,Z0+ZDist); // move to where we ended up
> > while (!CheckDone(ZAXIS)) ;
> > Let me know how much of this works :}
> >
> > TK
> >
> >
> > From: michaelthomasn <michaelniksch@...>
> > To: DynoMotion@yahoogroups.com
> > Sent: Friday, July 27, 2012 1:35 PM
> > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> >
> >
> > Tom,
> >
> > I mean I did not set up the spindle as a motor output in Mach.
> >
> > I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
> >
> > If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
> >
> > So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
> >
> > I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
> >
> > Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
> >
> > Let me know what you think.
> >
> > Thanks,
> >
> > Mike
> >
> > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Mike,
> > > Â
> > > I'm not sure I follow all that. But if your happy, I'm happy.
> > > Â
> > > Regards
> > > TK
> > >
> > > From: michaelthomasn <michaelniksch@>
> > > To: mailto:DynoMotion%40yahoogroups.com
> > > Sent: Friday, July 27, 2012 8:09 AM
> > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > >
> > >
> > > Â
> > >
> > > Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
> > >
> > > I hope that is right.
> > >
> > > Its working right so far.
> > >
> > > On to the rigid tap journey.
> > >
> > > Thanks,
> > >
> > > Mike
> > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > >
> > > >
> > > > Oh....Ok. It works great as far as direction goes, now.
> > > >
> > > > I don't know what I saved/sent.....I thought it was right, but obviously not.
> > > >
> > > > Accurate speed is now what I'm after.
> > > >
> > > > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> > > >
> > > > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> > > >
> > > > How do I set up the spindle in Mach motor config?
> > > >
> > > > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> > > >
> > > > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> > > >
> > > > I messed with it for a bit but didn't seem to make much headway.
> > > >
> > > > Thanks again,
> > > >
> > > > Mike
> > > >
> > > >
> > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Mike,
> > > > > ÂÂ
> > > > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system. Switch relays or whatever. I assume your spindle can jog + and - like an servo? I've uploaded a file to your folder that may work for you.
> > > > > ÂÂ
> > > > > The XML file doesn't seem to have any Dynomotion Configuration in it. Did you upload the right file? Did you save the Mach3 Settings?
> > > > > ÂÂ
> > > > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > > > ÂÂ
> > > > > Let me know haw far this gets you.
> > > > > ÂÂ
> > > > > Regards
> > > > > TK
> > > > >
> > > > > From: michaelthomasn <michaelniksch@>
> > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > Sent: Thursday, July 26, 2012 3:12 PM
> > > > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > > > >
> > > > >
> > > > > ÂÂ
> > > > > Tom,
> > > > >
> > > > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > > > >
> > > > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > > > >
> > > > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > > > >
> > > > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > > > >
> > > > > I have attached my XML and spindle prog in my folder.
> > > > >
> > > > > Please help.....I've tried most everything.
> > > > >
> > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > >
> > > > > Mike
> > > > >
> > > >
> > >
> >
> >
> >
> >
>
Group: DynoMotion Message: 5471 From: Tom Kerekes Date: 7/29/2012
Subject: Re: Mach 3 Spindle struggle
Hi Mike,
 
Not sure why mine didn't work.  But anyways yours is good.
 
I think if you remove the line:
 
DoTap(-ZDist, RetractRate, TPI);
 
Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
 
I haven't seen that weird self start of Mach3.  Hard to imagine how our Plugin could be doing that.  Please try the lockdown version to see if it persists.
 
Regards
TK
 

Group: DynoMotion Message: 5472 From: Michael Niksch Date: 7/29/2012
Subject: Re: Mach 3 Spindle struggle
Tom,

Yours may not have worked because I may have not followed your directions properly.....lol.  It let me know where to look, though.

I left the DoTap(-ZDistRetractRateTPI); in because I need the spindle axis to return to exactly where it started when doing the multiple passes necessary for the operation and I didn't know how to do it otherwise.  I'm open to suggestions, though. :-)

I didn't think to try running a regular program without plugin calls to see if it would do the self start.  I'll try that first to maybe narrow down things a bit.

Thanks, 

Mike

On Jul 29, 2012, at 5:19 PM, Tom Kerekes <tk@...> wrote:

 

Hi Mike,
 
Not sure why mine didn't work.  But anyways yours is good.
 
I think if you remove the line:
 
DoTap(-ZDist, RetractRate, TPI);
 
Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
 
I haven't seen that weird self start of Mach3.  Hard to imagine how our Plugin could be doing that.  Please try the lockdown version to see if it persists.
 
Regards
TK
 

Group: DynoMotion Message: 5475 From: michaelthomasn Date: 7/30/2012
Subject: Re: Mach 3 Spindle struggle
Tom,

I installed the lockdown version. It still does the same things. If I use the load button, or the edit button to open or modify a program with a notify plugin......it starts on its own on return to mach.

It does not do this with a regular g code pgm.

I am using the turn version with an different screenset.
??????

Mike

--- In DynoMotion@yahoogroups.com, Michael Niksch <michaelniksch@...> wrote:
>
> Tom,
>
> Yours may not have worked because I may have not followed your directions properly.....lol. It let me know where to look, though.
>
> I left the DoTap(-ZDist, RetractRate, TPI); in because I need the spindle axis to return to exactly where it started when doing the multiple passes necessary for the operation and I didn't know how to do it otherwise. I'm open to suggestions, though. :-)
>
> I didn't think to try running a regular program without plugin calls to see if it would do the self start. I'll try that first to maybe narrow down things a bit.
>
> Thanks,
>
> Mike
>
> On Jul 29, 2012, at 5:19 PM, Tom Kerekes <tk@...> wrote:
>
> > Hi Mike,
> >
> > Not sure why mine didn't work. But anyways yours is good.
> >
> > I think if you remove the line:
> >
> > DoTap(-ZDist, RetractRate, TPI);
> >
> > Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
> >
> > I haven't seen that weird self start of Mach3. Hard to imagine how our Plugin could be doing that. Please try the lockdown version to see if it persists.
> >
> > Regards
> > TK
> >
> >
> > From: michaelthomasn <michaelniksch@...>
> > To: DynoMotion@yahoogroups.com
> > Sent: Saturday, July 28, 2012 11:31 AM
> > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> >
> >
> > Tom,
> >
> > I made the adjustments you suggested to the notifytap program, and I could not get it to run the tap sequence. It would position itself in preparation, then just skip over the tap part and move on to the code after.
> >
> > I fiddled around with it and just ended up adding some lines in the c program to do the retract. It seems to work ok. I uploaded the c prog and my XML to my folder. Could you let me know if it is an acceptable way to do the retract?
> >
> > Also, an odd thing happens when using the edit button in Mach. I press the button, and it brings up the txt file. I make my adjustment, save it, and when I close the file the program immediately runs in mach without my consent. If I hit the emergency stop, the program stops.....but when I re-initialize it will start again where it was when I hit the E-stop. I wonder if this is just some weird anomaly in MachTurn. I am using 3.043.062....because I heard that the lockdown version had problems in Turn. Maybe I should try the lockdown.
> >
> > Any ideas on that?
> >
> > Thanks,
> >
> > Mike
> >
> > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > >
> > > Tom,
> > >
> > > Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
> > >
> > > Thanks very much,
> > >
> > > Mike
> > >
> > > On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@> wrote:
> > >
> > > > Hi Mike,
> > > >
> > > > I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
> > > >
> > > > To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
> > > >
> > > > // retract fully
> > > > DoTap(-ZDist, RetractRate, TPI);
> > > > and also add the +ZDist as shown below
> > > >
> > > > Delay_sec(1.0);
> > > > Move(ZAXIS,Z0+ZDist); // move to where we ended up
> > > > while (!CheckDone(ZAXIS)) ;
> > > > Let me know how much of this works :}
> > > >
> > > > TK
> > > >
> > > >
> > > > From: michaelthomasn <michaelniksch@>
> > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > Sent: Friday, July 27, 2012 1:35 PM
> > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > >
> > > >
> > > > Tom,
> > > >
> > > > I mean I did not set up the spindle as a motor output in Mach.
> > > >
> > > > I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
> > > >
> > > > If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
> > > >
> > > > So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
> > > >
> > > > I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
> > > >
> > > > Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
> > > >
> > > > Let me know what you think.
> > > >
> > > > Thanks,
> > > >
> > > > Mike
> > > >
> > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Mike,
> > > > > Â
> > > > > I'm not sure I follow all that. But if your happy, I'm happy.
> > > > > Â
> > > > > Regards
> > > > > TK
> > > > >
> > > > > From: michaelthomasn <michaelniksch@>
> > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > Sent: Friday, July 27, 2012 8:09 AM
> > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > >
> > > > >
> > > > > Â
> > > > >
> > > > > Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
> > > > >
> > > > > I hope that is right.
> > > > >
> > > > > Its working right so far.
> > > > >
> > > > > On to the rigid tap journey.
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Mike
> > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > >
> > > > > >
> > > > > > Oh....Ok. It works great as far as direction goes, now.
> > > > > >
> > > > > > I don't know what I saved/sent.....I thought it was right, but obviously not.
> > > > > >
> > > > > > Accurate speed is now what I'm after.
> > > > > >
> > > > > > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> > > > > >
> > > > > > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> > > > > >
> > > > > > How do I set up the spindle in Mach motor config?
> > > > > >
> > > > > > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> > > > > >
> > > > > > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> > > > > >
> > > > > > I messed with it for a bit but didn't seem to make much headway.
> > > > > >
> > > > > > Thanks again,
> > > > > >
> > > > > > Mike
> > > > > >
> > > > > >
> > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Mike,
> > > > > > > ÃÆ'‚Â
> > > > > > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.ÃÆ'‚Â Switch relays or whatever.ÃÆ'‚Â I assume your spindle can jog + and - like an servo?ÃÆ'‚Â I've uploaded a file to your folder that may work for you.
> > > > > > > ÃÆ'‚Â
> > > > > > > The XML file doesn't seem to have any Dynomotion Configuration in it.ÃÆ'‚Â Did you upload the right file?ÃÆ'‚Â Did you save the Mach3 Settings?
> > > > > > > ÃÆ'‚Â
> > > > > > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > > > > > ÃÆ'‚Â
> > > > > > > Let me know haw far this gets you.
> > > > > > > ÃÆ'‚Â
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > Sent: Thursday, July 26, 2012 3:12 PM
> > > > > > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'‚Â
> > > > > > > Tom,
> > > > > > >
> > > > > > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > > > > > >
> > > > > > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > > > > > >
> > > > > > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > > > > > >
> > > > > > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > > > > > >
> > > > > > > I have attached my XML and spindle prog in my folder.
> > > > > > >
> > > > > > > Please help.....I've tried most everything.
> > > > > > >
> > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > > > >
> > > > > > > Mike
> > > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
> >
> >
>
Group: DynoMotion Message: 5476 From: michaelthomasn Date: 7/30/2012
Subject: Re: Mach 3 Spindle struggle
Ok....the problem seems to stem from mach trying to generate the toolpath. I have just been pressing cancel. It wants to hang up on the m84.

If I got to the top of the screen and select view/regen toolpath....the same thing will happen.

Ideas???

Mike

--- In DynoMotion@yahoogroups.com, "michaelthomasn" <michaelniksch@...> wrote:
>
> Tom,
>
> I installed the lockdown version. It still does the same things. If I use the load button, or the edit button to open or modify a program with a notify plugin......it starts on its own on return to mach.
>
> It does not do this with a regular g code pgm.
>
> I am using the turn version with an different screenset.
> ??????
>
> Mike
>
> --- In DynoMotion@yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> >
> > Tom,
> >
> > Yours may not have worked because I may have not followed your directions properly.....lol. It let me know where to look, though.
> >
> > I left the DoTap(-ZDist, RetractRate, TPI); in because I need the spindle axis to return to exactly where it started when doing the multiple passes necessary for the operation and I didn't know how to do it otherwise. I'm open to suggestions, though. :-)
> >
> > I didn't think to try running a regular program without plugin calls to see if it would do the self start. I'll try that first to maybe narrow down things a bit.
> >
> > Thanks,
> >
> > Mike
> >
> > On Jul 29, 2012, at 5:19 PM, Tom Kerekes <tk@> wrote:
> >
> > > Hi Mike,
> > >
> > > Not sure why mine didn't work. But anyways yours is good.
> > >
> > > I think if you remove the line:
> > >
> > > DoTap(-ZDist, RetractRate, TPI);
> > >
> > > Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
> > >
> > > I haven't seen that weird self start of Mach3. Hard to imagine how our Plugin could be doing that. Please try the lockdown version to see if it persists.
> > >
> > > Regards
> > > TK
> > >
> > >
> > > From: michaelthomasn <michaelniksch@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Saturday, July 28, 2012 11:31 AM
> > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > >
> > >
> > > Tom,
> > >
> > > I made the adjustments you suggested to the notifytap program, and I could not get it to run the tap sequence. It would position itself in preparation, then just skip over the tap part and move on to the code after.
> > >
> > > I fiddled around with it and just ended up adding some lines in the c program to do the retract. It seems to work ok. I uploaded the c prog and my XML to my folder. Could you let me know if it is an acceptable way to do the retract?
> > >
> > > Also, an odd thing happens when using the edit button in Mach. I press the button, and it brings up the txt file. I make my adjustment, save it, and when I close the file the program immediately runs in mach without my consent. If I hit the emergency stop, the program stops.....but when I re-initialize it will start again where it was when I hit the E-stop. I wonder if this is just some weird anomaly in MachTurn. I am using 3.043.062....because I heard that the lockdown version had problems in Turn. Maybe I should try the lockdown.
> > >
> > > Any ideas on that?
> > >
> > > Thanks,
> > >
> > > Mike
> > >
> > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > >
> > > > Tom,
> > > >
> > > > Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
> > > >
> > > > Thanks very much,
> > > >
> > > > Mike
> > > >
> > > > On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@> wrote:
> > > >
> > > > > Hi Mike,
> > > > >
> > > > > I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
> > > > >
> > > > > To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
> > > > >
> > > > > // retract fully
> > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > and also add the +ZDist as shown below
> > > > >
> > > > > Delay_sec(1.0);
> > > > > Move(ZAXIS,Z0+ZDist); // move to where we ended up
> > > > > while (!CheckDone(ZAXIS)) ;
> > > > > Let me know how much of this works :}
> > > > >
> > > > > TK
> > > > >
> > > > >
> > > > > From: michaelthomasn <michaelniksch@>
> > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > Sent: Friday, July 27, 2012 1:35 PM
> > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > >
> > > > >
> > > > > Tom,
> > > > >
> > > > > I mean I did not set up the spindle as a motor output in Mach.
> > > > >
> > > > > I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
> > > > >
> > > > > If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
> > > > >
> > > > > So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
> > > > >
> > > > > I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
> > > > >
> > > > > Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
> > > > >
> > > > > Let me know what you think.
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Mike
> > > > >
> > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Mike,
> > > > > > Â
> > > > > > I'm not sure I follow all that. But if your happy, I'm happy.
> > > > > > Â
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > Sent: Friday, July 27, 2012 8:09 AM
> > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > >
> > > > > >
> > > > > > Â
> > > > > >
> > > > > > Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
> > > > > >
> > > > > > I hope that is right.
> > > > > >
> > > > > > Its working right so far.
> > > > > >
> > > > > > On to the rigid tap journey.
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Mike
> > > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > > >
> > > > > > >
> > > > > > > Oh....Ok. It works great as far as direction goes, now.
> > > > > > >
> > > > > > > I don't know what I saved/sent.....I thought it was right, but obviously not.
> > > > > > >
> > > > > > > Accurate speed is now what I'm after.
> > > > > > >
> > > > > > > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> > > > > > >
> > > > > > > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> > > > > > >
> > > > > > > How do I set up the spindle in Mach motor config?
> > > > > > >
> > > > > > > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> > > > > > >
> > > > > > > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> > > > > > >
> > > > > > > I messed with it for a bit but didn't seem to make much headway.
> > > > > > >
> > > > > > > Thanks again,
> > > > > > >
> > > > > > > Mike
> > > > > > >
> > > > > > >
> > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Mike,
> > > > > > > > ÃÆ'‚Â
> > > > > > > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.ÃÆ'‚Â Switch relays or whatever.ÃÆ'‚Â I assume your spindle can jog + and - like an servo?ÃÆ'‚Â I've uploaded a file to your folder that may work for you.
> > > > > > > > ÃÆ'‚Â
> > > > > > > > The XML file doesn't seem to have any Dynomotion Configuration in it.ÃÆ'‚Â Did you upload the right file?ÃÆ'‚Â Did you save the Mach3 Settings?
> > > > > > > > ÃÆ'‚Â
> > > > > > > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > > > > > > ÃÆ'‚Â
> > > > > > > > Let me know haw far this gets you.
> > > > > > > > ÃÆ'‚Â
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > Sent: Thursday, July 26, 2012 3:12 PM
> > > > > > > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > > > > > > >
> > > > > > > >
> > > > > > > > ÃÆ'‚Â
> > > > > > > > Tom,
> > > > > > > >
> > > > > > > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > > > > > > >
> > > > > > > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > > > > > > >
> > > > > > > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > > > > > > >
> > > > > > > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > > > > > > >
> > > > > > > > I have attached my XML and spindle prog in my folder.
> > > > > > > >
> > > > > > > > Please help.....I've tried most everything.
> > > > > > > >
> > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > > > > >
> > > > > > > > Mike
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > >
> >
>
Group: DynoMotion Message: 5479 From: Tom Kerekes Date: 7/30/2012
Subject: Re: Mach 3 Spindle struggle
Hi Mike,
 
I think whenever Mach3 generates the tool path it Interprets through all the GCode which calls the M codes and triggers rigid tapping and so forth.
 
Try the Mach3 | Config | General Config | Ignore M Calls while loading option.
 
Otherwise there may be a way to tell if it is a tool path regeneration inside the M84 and skip doing anything.
 
Regards
TK 

Group: DynoMotion Message: 5480 From: michaelthomasn Date: 7/30/2012
Subject: Re: Mach 3 Spindle struggle
You got it......thanks again.

Mike

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Mike,
>  
> I think whenever Mach3 generates the tool path it Interprets through all the GCode which calls the M codes and triggers rigid tapping and so forth.
>  
> Try the Mach3 | Config | General Config | Ignore M Calls while loading option.
>  
> Otherwise there may be a way to tell if it is a tool path regeneration inside the M84 and skip doing anything.
>  
> Regards
> TK 
>
> From: michaelthomasn <michaelniksch@...>
> To: DynoMotion@yahoogroups.com
> Sent: Monday, July 30, 2012 10:22 AM
> Subject: [DynoMotion] Re: Mach 3 Spindle struggle
>
>
>  
> Ok....the problem seems to stem from mach trying to generate the toolpath. I have just been pressing cancel. It wants to hang up on the m84.
>
> If I got to the top of the screen and select view/regen toolpath....the same thing will happen.
>
> Ideas???
>
> Mike
>
> --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> >
> > Tom,
> >
> > I installed the lockdown version. It still does the same things. If I use the load button, or the edit button to open or modify a program with a notify plugin......it starts on its own on return to mach.
> >
> > It does not do this with a regular g code pgm.
> >
> > I am using the turn version with an different screenset.
> > ??????
> >
> > Mike
> >
> > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > >
> > > Tom,
> > >
> > > Yours may not have worked because I may have not followed your directions properly.....lol. It let me know where to look, though.
> > >
> > > I left the DoTap(-ZDist, RetractRate, TPI); in because I need the spindle axis to return to exactly where it started when doing the multiple passes necessary for the operation and I didn't know how to do it otherwise. I'm open to suggestions, though. :-)
> > >
> > > I didn't think to try running a regular program without plugin calls to see if it would do the self start. I'll try that first to maybe narrow down things a bit.
> > >
> > > Thanks,
> > >
> > > Mike
> > >
> > > On Jul 29, 2012, at 5:19 PM, Tom Kerekes <tk@> wrote:
> > >
> > > > Hi Mike,
> > > >
> > > > Not sure why mine didn't work. But anyways yours is good.
> > > >
> > > > I think if you remove the line:
> > > >
> > > > DoTap(-ZDist, RetractRate, TPI);
> > > >
> > > > Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
> > > >
> > > > I haven't seen that weird self start of Mach3. Hard to imagine how our Plugin could be doing that. Please try the lockdown version to see if it persists.
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > > > From: michaelthomasn <michaelniksch@>
> > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > Sent: Saturday, July 28, 2012 11:31 AM
> > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > >
> > > >
> > > > Tom,
> > > >
> > > > I made the adjustments you suggested to the notifytap program, and I could not get it to run the tap sequence. It would position itself in preparation, then just skip over the tap part and move on to the code after.
> > > >
> > > > I fiddled around with it and just ended up adding some lines in the c program to do the retract. It seems to work ok. I uploaded the c prog and my XML to my folder. Could you let me know if it is an acceptable way to do the retract?
> > > >
> > > > Also, an odd thing happens when using the edit button in Mach. I press the button, and it brings up the txt file. I make my adjustment, save it, and when I close the file the program immediately runs in mach without my consent. If I hit the emergency stop, the program stops.....but when I re-initialize it will start again where it was when I hit the E-stop. I wonder if this is just some weird anomaly in MachTurn. I am using 3.043.062....because I heard that the lockdown version had problems in Turn. Maybe I should try the lockdown.
> > > >
> > > > Any ideas on that?
> > > >
> > > > Thanks,
> > > >
> > > > Mike
> > > >
> > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > >
> > > > > Tom,
> > > > >
> > > > > Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
> > > > >
> > > > > Thanks very much,
> > > > >
> > > > > Mike
> > > > >
> > > > > On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > > Hi Mike,
> > > > > >
> > > > > > I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
> > > > > >
> > > > > > To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
> > > > > >
> > > > > > // retract fully
> > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > and also add the +ZDist as shown below
> > > > > >
> > > > > > Delay_sec(1.0);
> > > > > > Move(ZAXIS,Z0+ZDist); // move to where we ended up
> > > > > > while (!CheckDone(ZAXIS)) ;
> > > > > > Let me know how much of this works :}
> > > > > >
> > > > > > TK
> > > > > >
> > > > > >
> > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > Sent: Friday, July 27, 2012 1:35 PM
> > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > >
> > > > > >
> > > > > > Tom,
> > > > > >
> > > > > > I mean I did not set up the spindle as a motor output in Mach.
> > > > > >
> > > > > > I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
> > > > > >
> > > > > > If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
> > > > > >
> > > > > > So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
> > > > > >
> > > > > > I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
> > > > > >
> > > > > > Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
> > > > > >
> > > > > > Let me know what you think.
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Mike
> > > > > >
> > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Mike,
> > > > > > > ÃÆ'‚
> > > > > > > I'm not sure I follow all that.ÃÆ'‚ But if your happy, I'm happy.
> > > > > > > ÃÆ'‚
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > Sent: Friday, July 27, 2012 8:09 AM
> > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'‚
> > > > > > >
> > > > > > > Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
> > > > > > >
> > > > > > > I hope that is right.
> > > > > > >
> > > > > > > Its working right so far.
> > > > > > >
> > > > > > > On to the rigid tap journey.
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > Mike
> > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > > Oh....Ok. It works great as far as direction goes, now.
> > > > > > > >
> > > > > > > > I don't know what I saved/sent.....I thought it was right, but obviously not.
> > > > > > > >
> > > > > > > > Accurate speed is now what I'm after.
> > > > > > > >
> > > > > > > > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> > > > > > > >
> > > > > > > > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> > > > > > > >
> > > > > > > > How do I set up the spindle in Mach motor config?
> > > > > > > >
> > > > > > > > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> > > > > > > >
> > > > > > > > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> > > > > > > >
> > > > > > > > I messed with it for a bit but didn't seem to make much headway.
> > > > > > > >
> > > > > > > > Thanks again,
> > > > > > > >
> > > > > > > > Mike
> > > > > > > >
> > > > > > > >
> > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Mike,
> > > > > > > > > ÃÆ'Æ'‚ÃÆ'‚
> > > > > > > > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.ÃÆ'Æ'‚ÃÆ'‚ Switch relays or whatever.ÃÆ'Æ'‚ÃÆ'‚ I assume your spindle can jog + and - like an servo?ÃÆ'Æ'‚ÃÆ'‚ I've uploaded a file to your folder that may work for you.
> > > > > > > > > ÃÆ'Æ'‚ÃÆ'‚
> > > > > > > > > The XML file doesn't seem to have any Dynomotion Configuration in it.ÃÆ'Æ'‚ÃÆ'‚ Did you upload the right file?ÃÆ'Æ'‚ÃÆ'‚ Did you save the Mach3 Settings?
> > > > > > > > > ÃÆ'Æ'‚ÃÆ'‚
> > > > > > > > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > > > > > > > ÃÆ'Æ'‚ÃÆ'‚
> > > > > > > > > Let me know haw far this gets you.
> > > > > > > > > ÃÆ'Æ'‚ÃÆ'‚
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > Sent: Thursday, July 26, 2012 3:12 PM
> > > > > > > > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ÃÆ'Æ'‚ÃÆ'‚
> > > > > > > > > Tom,
> > > > > > > > >
> > > > > > > > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > > > > > > > >
> > > > > > > > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > > > > > > > >
> > > > > > > > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > > > > > > > >
> > > > > > > > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > > > > > > > >
> > > > > > > > > I have attached my XML and spindle prog in my folder.
> > > > > > > > >
> > > > > > > > > Please help.....I've tried most everything.
> > > > > > > > >
> > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > > > > > >
> > > > > > > > > Mike
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 5483 From: michaelthomasn Date: 7/30/2012
Subject: Re: Mach 3 Spindle struggle
Tom, is there any way to make a feedhold while M84 (thread grind for me) is executing?

I have feedhold in mach trigger virtual bit 50, and start clears the bit. Then a watchdog in Kflop looks for bit 50 to stop or resume coordinated motion. This seems to work fine during gcode, but does not during the M84.

Thanks,

Mike

--- In DynoMotion@yahoogroups.com, "michaelthomasn" <michaelniksch@...> wrote:
>
> You got it......thanks again.
>
> Mike
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Mike,
> >  
> > I think whenever Mach3 generates the tool path it Interprets through all the GCode which calls the M codes and triggers rigid tapping and so forth.
> >  
> > Try the Mach3 | Config | General Config | Ignore M Calls while loading option.
> >  
> > Otherwise there may be a way to tell if it is a tool path regeneration inside the M84 and skip doing anything.
> >  
> > Regards
> > TK 
> >
> > From: michaelthomasn <michaelniksch@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Monday, July 30, 2012 10:22 AM
> > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> >
> >
> >  
> > Ok....the problem seems to stem from mach trying to generate the toolpath. I have just been pressing cancel. It wants to hang up on the m84.
> >
> > If I got to the top of the screen and select view/regen toolpath....the same thing will happen.
> >
> > Ideas???
> >
> > Mike
> >
> > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > >
> > > Tom,
> > >
> > > I installed the lockdown version. It still does the same things. If I use the load button, or the edit button to open or modify a program with a notify plugin......it starts on its own on return to mach.
> > >
> > > It does not do this with a regular g code pgm.
> > >
> > > I am using the turn version with an different screenset.
> > > ??????
> > >
> > > Mike
> > >
> > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > >
> > > > Tom,
> > > >
> > > > Yours may not have worked because I may have not followed your directions properly.....lol. It let me know where to look, though.
> > > >
> > > > I left the DoTap(-ZDist, RetractRate, TPI); in because I need the spindle axis to return to exactly where it started when doing the multiple passes necessary for the operation and I didn't know how to do it otherwise. I'm open to suggestions, though. :-)
> > > >
> > > > I didn't think to try running a regular program without plugin calls to see if it would do the self start. I'll try that first to maybe narrow down things a bit.
> > > >
> > > > Thanks,
> > > >
> > > > Mike
> > > >
> > > > On Jul 29, 2012, at 5:19 PM, Tom Kerekes <tk@> wrote:
> > > >
> > > > > Hi Mike,
> > > > >
> > > > > Not sure why mine didn't work. But anyways yours is good.
> > > > >
> > > > > I think if you remove the line:
> > > > >
> > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > >
> > > > > Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
> > > > >
> > > > > I haven't seen that weird self start of Mach3. Hard to imagine how our Plugin could be doing that. Please try the lockdown version to see if it persists.
> > > > >
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > > From: michaelthomasn <michaelniksch@>
> > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > Sent: Saturday, July 28, 2012 11:31 AM
> > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > >
> > > > >
> > > > > Tom,
> > > > >
> > > > > I made the adjustments you suggested to the notifytap program, and I could not get it to run the tap sequence. It would position itself in preparation, then just skip over the tap part and move on to the code after.
> > > > >
> > > > > I fiddled around with it and just ended up adding some lines in the c program to do the retract. It seems to work ok. I uploaded the c prog and my XML to my folder. Could you let me know if it is an acceptable way to do the retract?
> > > > >
> > > > > Also, an odd thing happens when using the edit button in Mach. I press the button, and it brings up the txt file. I make my adjustment, save it, and when I close the file the program immediately runs in mach without my consent. If I hit the emergency stop, the program stops.....but when I re-initialize it will start again where it was when I hit the E-stop. I wonder if this is just some weird anomaly in MachTurn. I am using 3.043.062....because I heard that the lockdown version had problems in Turn. Maybe I should try the lockdown.
> > > > >
> > > > > Any ideas on that?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Mike
> > > > >
> > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > >
> > > > > > Tom,
> > > > > >
> > > > > > Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
> > > > > >
> > > > > > Thanks very much,
> > > > > >
> > > > > > Mike
> > > > > >
> > > > > > On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > > Hi Mike,
> > > > > > >
> > > > > > > I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
> > > > > > >
> > > > > > > To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
> > > > > > >
> > > > > > > // retract fully
> > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > > and also add the +ZDist as shown below
> > > > > > >
> > > > > > > Delay_sec(1.0);
> > > > > > > Move(ZAXIS,Z0+ZDist); // move to where we ended up
> > > > > > > while (!CheckDone(ZAXIS)) ;
> > > > > > > Let me know how much of this works :}
> > > > > > >
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > Sent: Friday, July 27, 2012 1:35 PM
> > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > >
> > > > > > >
> > > > > > > Tom,
> > > > > > >
> > > > > > > I mean I did not set up the spindle as a motor output in Mach.
> > > > > > >
> > > > > > > I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
> > > > > > >
> > > > > > > If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
> > > > > > >
> > > > > > > So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
> > > > > > >
> > > > > > > I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
> > > > > > >
> > > > > > > Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
> > > > > > >
> > > > > > > Let me know what you think.
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > Mike
> > > > > > >
> > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Mike,
> > > > > > > > ÃÆ'‚
> > > > > > > > I'm not sure I follow all that.ÃÆ'‚ But if your happy, I'm happy.
> > > > > > > > ÃÆ'‚
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > Sent: Friday, July 27, 2012 8:09 AM
> > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > >
> > > > > > > >
> > > > > > > > ÃÆ'‚
> > > > > > > >
> > > > > > > > Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
> > > > > > > >
> > > > > > > > I hope that is right.
> > > > > > > >
> > > > > > > > Its working right so far.
> > > > > > > >
> > > > > > > > On to the rigid tap journey.
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > >
> > > > > > > > Mike
> > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Oh....Ok. It works great as far as direction goes, now.
> > > > > > > > >
> > > > > > > > > I don't know what I saved/sent.....I thought it was right, but obviously not.
> > > > > > > > >
> > > > > > > > > Accurate speed is now what I'm after.
> > > > > > > > >
> > > > > > > > > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> > > > > > > > >
> > > > > > > > > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> > > > > > > > >
> > > > > > > > > How do I set up the spindle in Mach motor config?
> > > > > > > > >
> > > > > > > > > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> > > > > > > > >
> > > > > > > > > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> > > > > > > > >
> > > > > > > > > I messed with it for a bit but didn't seem to make much headway.
> > > > > > > > >
> > > > > > > > > Thanks again,
> > > > > > > > >
> > > > > > > > > Mike
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Mike,
> > > > > > > > > > ÃÆ'Æ'‚ÃÆ'‚
> > > > > > > > > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.ÃÆ'Æ'‚ÃÆ'‚ Switch relays or whatever.ÃÆ'Æ'‚ÃÆ'‚ I assume your spindle can jog + and - like an servo?ÃÆ'Æ'‚ÃÆ'‚ I've uploaded a file to your folder that may work for you.
> > > > > > > > > > ÃÆ'Æ'‚ÃÆ'‚
> > > > > > > > > > The XML file doesn't seem to have any Dynomotion Configuration in it.ÃÆ'Æ'‚ÃÆ'‚ Did you upload the right file?ÃÆ'Æ'‚ÃÆ'‚ Did you save the Mach3 Settings?
> > > > > > > > > > ÃÆ'Æ'‚ÃÆ'‚
> > > > > > > > > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > > > > > > > > ÃÆ'Æ'‚ÃÆ'‚
> > > > > > > > > > Let me know haw far this gets you.
> > > > > > > > > > ÃÆ'Æ'‚ÃÆ'‚
> > > > > > > > > > Regards
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > Sent: Thursday, July 26, 2012 3:12 PM
> > > > > > > > > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > ÃÆ'Æ'‚ÃÆ'‚
> > > > > > > > > > Tom,
> > > > > > > > > >
> > > > > > > > > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > > > > > > > > >
> > > > > > > > > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > > > > > > > > >
> > > > > > > > > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > > > > > > > > >
> > > > > > > > > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > > > > > > > > >
> > > > > > > > > > I have attached my XML and spindle prog in my folder.
> > > > > > > > > >
> > > > > > > > > > Please help.....I've tried most everything.
> > > > > > > > > >
> > > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > > > > > > >
> > > > > > > > > > Mike
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 5484 From: Tom Kerekes Date: 7/30/2012
Subject: Re: Mach 3 Spindle struggle
Hi Mike,
 
Feed hold in the middle of Rigid tapping?  You want everything :}
 
Rigid Tapping is different than normal tapping as the Z is slaved to the Spindle.  I think we would need to stop the Spindle.  I've tried to add this to the C code and uploaded the file to your folder:
 
 
It looks for your virtual bit and Jogs the Spindel Axis to zero speed whenever the virtual bit transitions high.  It resumes the commanded spindle motion when the virtual bit transitions low.
 
Hopefully this might work.
 
BTW there are two techniques for rigid tapping.  The Z motion can be slaved to the commanded motion of the Spindle or it can be slaved to the actual position of the Spindle.  There are advantages and disadvantages to both techniques.  Currently your C progam is doing the first technique.  If your accuracy is good I would leave this alone.  But just wanted to point this out as an option.
 
Regards
TK
 
 
Group: DynoMotion Message: 5485 From: michaelthomasn Date: 7/30/2012
Subject: Re: Mach 3 Spindle struggle
Great.....thanks a lot. I will give it a try tomorrow.

As far as the two techniques are concerned....I would look for whatever is the most accurate. I didn't realize there was a choice.

Is it a pain to do the second technique?

The owner of this shop makes ballscrews and very high precision shafts that are checked by cmm. The idea was to make this machine dedicated for thread grinding carbide. The one thing that is in our favor is that the spindle moves very slow when thread grinding.
Like 1 rpm or less....so I think everything will have an easier time tracking at the slow speeds. Even the multi start threads seldom have a pitch over 5mm.

The machine has proven itself mechanically capable of maintaining .00005" in standard cylindrical grinding.....so as much accuracy that can be afforded electronically would be ideal.

Again.....the thing moves really slow.

Tell me what you think.

Thanks again,

Mike







--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Mike,
>  
> Feed hold in the middle of Rigid tapping?  You want everything :}
>  
> Rigid Tapping is different than normal tapping as the Z is slaved to the Spindle.  I think we would need to stop the Spindle.  I've tried to add this to the C code and uploaded the file to your folder:
>  
> http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
>  
> It looks for your virtual bit and Jogs the Spindel Axis to zero speed whenever the virtual bit transitions high.  It resumes the commanded spindle motion when the virtual bit transitions low.
>  
> Hopefully this might work.
>  
> BTW there are two techniques for rigid tapping.  The Z motion can be slaved to the commanded motion of the Spindle or it can be slaved to the actual position of the Spindle.  There are advantages and disadvantages to both techniques.  Currently your C progam is doing the first technique.  If your accuracy is good I would leave this alone.  But just wanted to point this out as an option.
>  
> Regards
> TK
>  
>  
> From: michaelthomasn <michaelniksch@...>
> To: DynoMotion@yahoogroups.com
> Sent: Monday, July 30, 2012 2:27 PM
> Subject: [DynoMotion] Re: Mach 3 Spindle struggle
>
>
>  
> Tom, is there any way to make a feedhold while M84 (thread grind for me) is executing?
>
> I have feedhold in mach trigger virtual bit 50, and start clears the bit. Then a watchdog in Kflop looks for bit 50 to stop or resume coordinated motion. This seems to work fine during gcode, but does not during the M84.
>
> Thanks,
>
> Mike
>
> --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> >
> > You got it......thanks again.
> >
> > Mike
> >
> > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Mike,
> > >  
> > > I think whenever Mach3 generates the tool path it Interprets through all the GCode which calls the M codes and triggers rigid tapping and so forth.
> > >  
> > > Try the Mach3 | Config | General Config | Ignore M Calls while loading option.
> > >  
> > > Otherwise there may be a way to tell if it is a tool path regeneration inside the M84 and skip doing anything.
> > >  
> > > Regards
> > > TK 
> > >
> > > From: michaelthomasn <michaelniksch@>
> > > To: mailto:DynoMotion%40yahoogroups.com
> > > Sent: Monday, July 30, 2012 10:22 AM
> > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > >
> > >
> > >  
> > > Ok....the problem seems to stem from mach trying to generate the toolpath. I have just been pressing cancel. It wants to hang up on the m84.
> > >
> > > If I got to the top of the screen and select view/regen toolpath....the same thing will happen.
> > >
> > > Ideas???
> > >
> > > Mike
> > >
> > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > >
> > > > Tom,
> > > >
> > > > I installed the lockdown version. It still does the same things. If I use the load button, or the edit button to open or modify a program with a notify plugin......it starts on its own on return to mach.
> > > >
> > > > It does not do this with a regular g code pgm.
> > > >
> > > > I am using the turn version with an different screenset.
> > > > ??????
> > > >
> > > > Mike
> > > >
> > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > >
> > > > > Tom,
> > > > >
> > > > > Yours may not have worked because I may have not followed your directions properly.....lol. It let me know where to look, though.
> > > > >
> > > > > I left the DoTap(-ZDist, RetractRate, TPI); in because I need the spindle axis to return to exactly where it started when doing the multiple passes necessary for the operation and I didn't know how to do it otherwise. I'm open to suggestions, though. :-)
> > > > >
> > > > > I didn't think to try running a regular program without plugin calls to see if it would do the self start. I'll try that first to maybe narrow down things a bit.
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Mike
> > > > >
> > > > > On Jul 29, 2012, at 5:19 PM, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > > Hi Mike,
> > > > > >
> > > > > > Not sure why mine didn't work. But anyways yours is good.
> > > > > >
> > > > > > I think if you remove the line:
> > > > > >
> > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > >
> > > > > > Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
> > > > > >
> > > > > > I haven't seen that weird self start of Mach3. Hard to imagine how our Plugin could be doing that. Please try the lockdown version to see if it persists.
> > > > > >
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > Sent: Saturday, July 28, 2012 11:31 AM
> > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > >
> > > > > >
> > > > > > Tom,
> > > > > >
> > > > > > I made the adjustments you suggested to the notifytap program, and I could not get it to run the tap sequence. It would position itself in preparation, then just skip over the tap part and move on to the code after.
> > > > > >
> > > > > > I fiddled around with it and just ended up adding some lines in the c program to do the retract. It seems to work ok. I uploaded the c prog and my XML to my folder. Could you let me know if it is an acceptable way to do the retract?
> > > > > >
> > > > > > Also, an odd thing happens when using the edit button in Mach. I press the button, and it brings up the txt file. I make my adjustment, save it, and when I close the file the program immediately runs in mach without my consent. If I hit the emergency stop, the program stops.....but when I re-initialize it will start again where it was when I hit the E-stop. I wonder if this is just some weird anomaly in MachTurn. I am using 3.043.062....because I heard that the lockdown version had problems in Turn. Maybe I should try the lockdown.
> > > > > >
> > > > > > Any ideas on that?
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Mike
> > > > > >
> > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > > >
> > > > > > > Tom,
> > > > > > >
> > > > > > > Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
> > > > > > >
> > > > > > > Thanks very much,
> > > > > > >
> > > > > > > Mike
> > > > > > >
> > > > > > > On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > > Hi Mike,
> > > > > > > >
> > > > > > > > I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
> > > > > > > >
> > > > > > > > To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
> > > > > > > >
> > > > > > > > // retract fully
> > > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > > > and also add the +ZDist as shown below
> > > > > > > >
> > > > > > > > Delay_sec(1.0);
> > > > > > > > Move(ZAXIS,Z0+ZDist); // move to where we ended up
> > > > > > > > while (!CheckDone(ZAXIS)) ;
> > > > > > > > Let me know how much of this works :}
> > > > > > > >
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > Sent: Friday, July 27, 2012 1:35 PM
> > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > >
> > > > > > > >
> > > > > > > > Tom,
> > > > > > > >
> > > > > > > > I mean I did not set up the spindle as a motor output in Mach.
> > > > > > > >
> > > > > > > > I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
> > > > > > > >
> > > > > > > > If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
> > > > > > > >
> > > > > > > > So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
> > > > > > > >
> > > > > > > > I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
> > > > > > > >
> > > > > > > > Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
> > > > > > > >
> > > > > > > > Let me know what you think.
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > >
> > > > > > > > Mike
> > > > > > > >
> > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Mike,
> > > > > > > > > ÃÆ'Æ'‚
> > > > > > > > > I'm not sure I follow all that.ÃÆ'Æ'‚ But if your happy, I'm happy.
> > > > > > > > > ÃÆ'Æ'‚
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > Sent: Friday, July 27, 2012 8:09 AM
> > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ÃÆ'Æ'‚
> > > > > > > > >
> > > > > > > > > Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
> > > > > > > > >
> > > > > > > > > I hope that is right.
> > > > > > > > >
> > > > > > > > > Its working right so far.
> > > > > > > > >
> > > > > > > > > On to the rigid tap journey.
> > > > > > > > >
> > > > > > > > > Thanks,
> > > > > > > > >
> > > > > > > > > Mike
> > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Oh....Ok. It works great as far as direction goes, now.
> > > > > > > > > >
> > > > > > > > > > I don't know what I saved/sent.....I thought it was right, but obviously not.
> > > > > > > > > >
> > > > > > > > > > Accurate speed is now what I'm after.
> > > > > > > > > >
> > > > > > > > > > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> > > > > > > > > >
> > > > > > > > > > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> > > > > > > > > >
> > > > > > > > > > How do I set up the spindle in Mach motor config?
> > > > > > > > > >
> > > > > > > > > > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> > > > > > > > > >
> > > > > > > > > > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> > > > > > > > > >
> > > > > > > > > > I messed with it for a bit but didn't seem to make much headway.
> > > > > > > > > >
> > > > > > > > > > Thanks again,
> > > > > > > > > >
> > > > > > > > > > Mike
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Hi Mike,
> > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚
> > > > > > > > > > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ Switch relays or whatever.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ I assume your spindle can jog + and - like an servo?ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ I've uploaded a file to your folder that may work for you.
> > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚
> > > > > > > > > > > The XML file doesn't seem to have any Dynomotion Configuration in it.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ Did you upload the right file?ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ Did you save the Mach3 Settings?
> > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚
> > > > > > > > > > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚
> > > > > > > > > > > Let me know haw far this gets you.
> > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚
> > > > > > > > > > > Regards
> > > > > > > > > > > TK
> > > > > > > > > > >
> > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > Sent: Thursday, July 26, 2012 3:12 PM
> > > > > > > > > > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚
> > > > > > > > > > > Tom,
> > > > > > > > > > >
> > > > > > > > > > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > > > > > > > > > >
> > > > > > > > > > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > > > > > > > > > >
> > > > > > > > > > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > > > > > > > > > >
> > > > > > > > > > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > > > > > > > > > >
> > > > > > > > > > > I have attached my XML and spindle prog in my folder.
> > > > > > > > > > >
> > > > > > > > > > > Please help.....I've tried most everything.
> > > > > > > > > > >
> > > > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > > > > > > > >
> > > > > > > > > > > Mike
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 5486 From: michaelthomasn Date: 7/31/2012
Subject: Re: Mach 3 Spindle struggle
Tom

I just finished trying it out. It does not stop.....the really odd thing is that it actually rolls on by the set tap depth and keeps on tapping until I stop it with the Estop button. I verified that bit 50 is being set when I push feedhold.

Mike


--- In DynoMotion@yahoogroups.com, "michaelthomasn" <michaelniksch@...> wrote:
>
> Great.....thanks a lot. I will give it a try tomorrow.
>
> As far as the two techniques are concerned....I would look for whatever is the most accurate. I didn't realize there was a choice.
>
> Is it a pain to do the second technique?
>
> The owner of this shop makes ballscrews and very high precision shafts that are checked by cmm. The idea was to make this machine dedicated for thread grinding carbide. The one thing that is in our favor is that the spindle moves very slow when thread grinding.
> Like 1 rpm or less....so I think everything will have an easier time tracking at the slow speeds. Even the multi start threads seldom have a pitch over 5mm.
>
> The machine has proven itself mechanically capable of maintaining .00005" in standard cylindrical grinding.....so as much accuracy that can be afforded electronically would be ideal.
>
> Again.....the thing moves really slow.
>
> Tell me what you think.
>
> Thanks again,
>
> Mike
>
>
>
>
>
>
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Mike,
> >  
> > Feed hold in the middle of Rigid tapping?  You want everything :}
> >  
> > Rigid Tapping is different than normal tapping as the Z is slaved to the Spindle.  I think we would need to stop the Spindle.  I've tried to add this to the C code and uploaded the file to your folder:
> >  
> > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> >  
> > It looks for your virtual bit and Jogs the Spindel Axis to zero speed whenever the virtual bit transitions high.  It resumes the commanded spindle motion when the virtual bit transitions low.
> >  
> > Hopefully this might work.
> >  
> > BTW there are two techniques for rigid tapping.  The Z motion can be slaved to the commanded motion of the Spindle or it can be slaved to the actual position of the Spindle.  There are advantages and disadvantages to both techniques.  Currently your C progam is doing the first technique.  If your accuracy is good I would leave this alone.  But just wanted to point this out as an option.
> >  
> > Regards
> > TK
> >  
> >  
> > From: michaelthomasn <michaelniksch@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Monday, July 30, 2012 2:27 PM
> > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> >
> >
> >  
> > Tom, is there any way to make a feedhold while M84 (thread grind for me) is executing?
> >
> > I have feedhold in mach trigger virtual bit 50, and start clears the bit. Then a watchdog in Kflop looks for bit 50 to stop or resume coordinated motion. This seems to work fine during gcode, but does not during the M84.
> >
> > Thanks,
> >
> > Mike
> >
> > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > >
> > > You got it......thanks again.
> > >
> > > Mike
> > >
> > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Mike,
> > > >  
> > > > I think whenever Mach3 generates the tool path it Interprets through all the GCode which calls the M codes and triggers rigid tapping and so forth.
> > > >  
> > > > Try the Mach3 | Config | General Config | Ignore M Calls while loading option.
> > > >  
> > > > Otherwise there may be a way to tell if it is a tool path regeneration inside the M84 and skip doing anything.
> > > >  
> > > > Regards
> > > > TK 
> > > >
> > > > From: michaelthomasn <michaelniksch@>
> > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > Sent: Monday, July 30, 2012 10:22 AM
> > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > >
> > > >
> > > >  
> > > > Ok....the problem seems to stem from mach trying to generate the toolpath. I have just been pressing cancel. It wants to hang up on the m84.
> > > >
> > > > If I got to the top of the screen and select view/regen toolpath....the same thing will happen.
> > > >
> > > > Ideas???
> > > >
> > > > Mike
> > > >
> > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > >
> > > > > Tom,
> > > > >
> > > > > I installed the lockdown version. It still does the same things. If I use the load button, or the edit button to open or modify a program with a notify plugin......it starts on its own on return to mach.
> > > > >
> > > > > It does not do this with a regular g code pgm.
> > > > >
> > > > > I am using the turn version with an different screenset.
> > > > > ??????
> > > > >
> > > > > Mike
> > > > >
> > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > >
> > > > > > Tom,
> > > > > >
> > > > > > Yours may not have worked because I may have not followed your directions properly.....lol. It let me know where to look, though.
> > > > > >
> > > > > > I left the DoTap(-ZDist, RetractRate, TPI); in because I need the spindle axis to return to exactly where it started when doing the multiple passes necessary for the operation and I didn't know how to do it otherwise. I'm open to suggestions, though. :-)
> > > > > >
> > > > > > I didn't think to try running a regular program without plugin calls to see if it would do the self start. I'll try that first to maybe narrow down things a bit.
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Mike
> > > > > >
> > > > > > On Jul 29, 2012, at 5:19 PM, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > > Hi Mike,
> > > > > > >
> > > > > > > Not sure why mine didn't work. But anyways yours is good.
> > > > > > >
> > > > > > > I think if you remove the line:
> > > > > > >
> > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > >
> > > > > > > Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
> > > > > > >
> > > > > > > I haven't seen that weird self start of Mach3. Hard to imagine how our Plugin could be doing that. Please try the lockdown version to see if it persists.
> > > > > > >
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > Sent: Saturday, July 28, 2012 11:31 AM
> > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > >
> > > > > > >
> > > > > > > Tom,
> > > > > > >
> > > > > > > I made the adjustments you suggested to the notifytap program, and I could not get it to run the tap sequence. It would position itself in preparation, then just skip over the tap part and move on to the code after.
> > > > > > >
> > > > > > > I fiddled around with it and just ended up adding some lines in the c program to do the retract. It seems to work ok. I uploaded the c prog and my XML to my folder. Could you let me know if it is an acceptable way to do the retract?
> > > > > > >
> > > > > > > Also, an odd thing happens when using the edit button in Mach. I press the button, and it brings up the txt file. I make my adjustment, save it, and when I close the file the program immediately runs in mach without my consent. If I hit the emergency stop, the program stops.....but when I re-initialize it will start again where it was when I hit the E-stop. I wonder if this is just some weird anomaly in MachTurn. I am using 3.043.062....because I heard that the lockdown version had problems in Turn. Maybe I should try the lockdown.
> > > > > > >
> > > > > > > Any ideas on that?
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > Mike
> > > > > > >
> > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > > > >
> > > > > > > > Tom,
> > > > > > > >
> > > > > > > > Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
> > > > > > > >
> > > > > > > > Thanks very much,
> > > > > > > >
> > > > > > > > Mike
> > > > > > > >
> > > > > > > > On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > > Hi Mike,
> > > > > > > > >
> > > > > > > > > I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
> > > > > > > > >
> > > > > > > > > To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
> > > > > > > > >
> > > > > > > > > // retract fully
> > > > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > > > > and also add the +ZDist as shown below
> > > > > > > > >
> > > > > > > > > Delay_sec(1.0);
> > > > > > > > > Move(ZAXIS,Z0+ZDist); // move to where we ended up
> > > > > > > > > while (!CheckDone(ZAXIS)) ;
> > > > > > > > > Let me know how much of this works :}
> > > > > > > > >
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > Sent: Friday, July 27, 2012 1:35 PM
> > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Tom,
> > > > > > > > >
> > > > > > > > > I mean I did not set up the spindle as a motor output in Mach.
> > > > > > > > >
> > > > > > > > > I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
> > > > > > > > >
> > > > > > > > > If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
> > > > > > > > >
> > > > > > > > > So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
> > > > > > > > >
> > > > > > > > > I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
> > > > > > > > >
> > > > > > > > > Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
> > > > > > > > >
> > > > > > > > > Let me know what you think.
> > > > > > > > >
> > > > > > > > > Thanks,
> > > > > > > > >
> > > > > > > > > Mike
> > > > > > > > >
> > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Mike,
> > > > > > > > > > ÃÆ'Æ'‚
> > > > > > > > > > I'm not sure I follow all that.ÃÆ'Æ'‚ But if your happy, I'm happy.
> > > > > > > > > > ÃÆ'Æ'‚
> > > > > > > > > > Regards
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > Sent: Friday, July 27, 2012 8:09 AM
> > > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > ÃÆ'Æ'‚
> > > > > > > > > >
> > > > > > > > > > Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
> > > > > > > > > >
> > > > > > > > > > I hope that is right.
> > > > > > > > > >
> > > > > > > > > > Its working right so far.
> > > > > > > > > >
> > > > > > > > > > On to the rigid tap journey.
> > > > > > > > > >
> > > > > > > > > > Thanks,
> > > > > > > > > >
> > > > > > > > > > Mike
> > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > Oh....Ok. It works great as far as direction goes, now.
> > > > > > > > > > >
> > > > > > > > > > > I don't know what I saved/sent.....I thought it was right, but obviously not.
> > > > > > > > > > >
> > > > > > > > > > > Accurate speed is now what I'm after.
> > > > > > > > > > >
> > > > > > > > > > > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> > > > > > > > > > >
> > > > > > > > > > > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> > > > > > > > > > >
> > > > > > > > > > > How do I set up the spindle in Mach motor config?
> > > > > > > > > > >
> > > > > > > > > > > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> > > > > > > > > > >
> > > > > > > > > > > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> > > > > > > > > > >
> > > > > > > > > > > I messed with it for a bit but didn't seem to make much headway.
> > > > > > > > > > >
> > > > > > > > > > > Thanks again,
> > > > > > > > > > >
> > > > > > > > > > > Mike
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > Hi Mike,
> > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚
> > > > > > > > > > > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ Switch relays or whatever.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ I assume your spindle can jog + and - like an servo?ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ I've uploaded a file to your folder that may work for you.
> > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚
> > > > > > > > > > > > The XML file doesn't seem to have any Dynomotion Configuration in it.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ Did you upload the right file?ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ Did you save the Mach3 Settings?
> > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚
> > > > > > > > > > > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚
> > > > > > > > > > > > Let me know haw far this gets you.
> > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚
> > > > > > > > > > > > Regards
> > > > > > > > > > > > TK
> > > > > > > > > > > >
> > > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > > Sent: Thursday, July 26, 2012 3:12 PM
> > > > > > > > > > > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚
> > > > > > > > > > > > Tom,
> > > > > > > > > > > >
> > > > > > > > > > > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > > > > > > > > > > >
> > > > > > > > > > > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > > > > > > > > > > >
> > > > > > > > > > > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > > > > > > > > > > >
> > > > > > > > > > > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > > > > > > > > > > >
> > > > > > > > > > > > I have attached my XML and spindle prog in my folder.
> > > > > > > > > > > >
> > > > > > > > > > > > Please help.....I've tried most everything.
> > > > > > > > > > > >
> > > > > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > > > > > > > > >
> > > > > > > > > > > > Mike
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 5487 From: michaelthomasn Date: 7/31/2012
Subject: Re: Mach 3 Spindle struggle
Tom,

I wondered if it was some sort of conflict with the watchdog that I added to my init file. I removed the part looking for bit 50....but it still did the same thing.

I added my init file to my folder....studers35softspin.

Mike



--- In DynoMotion@yahoogroups.com, "michaelthomasn" <michaelniksch@...> wrote:
>
> Tom
>
> I just finished trying it out. It does not stop.....the really odd thing is that it actually rolls on by the set tap depth and keeps on tapping until I stop it with the Estop button. I verified that bit 50 is being set when I push feedhold.
>
> Mike
>
>
> --- In DynoMotion@yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> >
> > Great.....thanks a lot. I will give it a try tomorrow.
> >
> > As far as the two techniques are concerned....I would look for whatever is the most accurate. I didn't realize there was a choice.
> >
> > Is it a pain to do the second technique?
> >
> > The owner of this shop makes ballscrews and very high precision shafts that are checked by cmm. The idea was to make this machine dedicated for thread grinding carbide. The one thing that is in our favor is that the spindle moves very slow when thread grinding.
> > Like 1 rpm or less....so I think everything will have an easier time tracking at the slow speeds. Even the multi start threads seldom have a pitch over 5mm.
> >
> > The machine has proven itself mechanically capable of maintaining .00005" in standard cylindrical grinding.....so as much accuracy that can be afforded electronically would be ideal.
> >
> > Again.....the thing moves really slow.
> >
> > Tell me what you think.
> >
> > Thanks again,
> >
> > Mike
> >
> >
> >
> >
> >
> >
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Mike,
> > >  
> > > Feed hold in the middle of Rigid tapping?  You want everything :}
> > >  
> > > Rigid Tapping is different than normal tapping as the Z is slaved to the Spindle.  I think we would need to stop the Spindle.  I've tried to add this to the C code and uploaded the file to your folder:
> > >  
> > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > >  
> > > It looks for your virtual bit and Jogs the Spindel Axis to zero speed whenever the virtual bit transitions high.  It resumes the commanded spindle motion when the virtual bit transitions low.
> > >  
> > > Hopefully this might work.
> > >  
> > > BTW there are two techniques for rigid tapping.  The Z motion can be slaved to the commanded motion of the Spindle or it can be slaved to the actual position of the Spindle.  There are advantages and disadvantages to both techniques.  Currently your C progam is doing the first technique.  If your accuracy is good I would leave this alone.  But just wanted to point this out as an option.
> > >  
> > > Regards
> > > TK
> > >  
> > >  
> > > From: michaelthomasn <michaelniksch@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Monday, July 30, 2012 2:27 PM
> > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > >
> > >
> > >  
> > > Tom, is there any way to make a feedhold while M84 (thread grind for me) is executing?
> > >
> > > I have feedhold in mach trigger virtual bit 50, and start clears the bit. Then a watchdog in Kflop looks for bit 50 to stop or resume coordinated motion. This seems to work fine during gcode, but does not during the M84.
> > >
> > > Thanks,
> > >
> > > Mike
> > >
> > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > >
> > > > You got it......thanks again.
> > > >
> > > > Mike
> > > >
> > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Mike,
> > > > >  
> > > > > I think whenever Mach3 generates the tool path it Interprets through all the GCode which calls the M codes and triggers rigid tapping and so forth.
> > > > >  
> > > > > Try the Mach3 | Config | General Config | Ignore M Calls while loading option.
> > > > >  
> > > > > Otherwise there may be a way to tell if it is a tool path regeneration inside the M84 and skip doing anything.
> > > > >  
> > > > > Regards
> > > > > TK 
> > > > >
> > > > > From: michaelthomasn <michaelniksch@>
> > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > Sent: Monday, July 30, 2012 10:22 AM
> > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > >
> > > > >
> > > > >  
> > > > > Ok....the problem seems to stem from mach trying to generate the toolpath. I have just been pressing cancel. It wants to hang up on the m84.
> > > > >
> > > > > If I got to the top of the screen and select view/regen toolpath....the same thing will happen.
> > > > >
> > > > > Ideas???
> > > > >
> > > > > Mike
> > > > >
> > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > >
> > > > > > Tom,
> > > > > >
> > > > > > I installed the lockdown version. It still does the same things. If I use the load button, or the edit button to open or modify a program with a notify plugin......it starts on its own on return to mach.
> > > > > >
> > > > > > It does not do this with a regular g code pgm.
> > > > > >
> > > > > > I am using the turn version with an different screenset.
> > > > > > ??????
> > > > > >
> > > > > > Mike
> > > > > >
> > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > > >
> > > > > > > Tom,
> > > > > > >
> > > > > > > Yours may not have worked because I may have not followed your directions properly.....lol. It let me know where to look, though.
> > > > > > >
> > > > > > > I left the DoTap(-ZDist, RetractRate, TPI); in because I need the spindle axis to return to exactly where it started when doing the multiple passes necessary for the operation and I didn't know how to do it otherwise. I'm open to suggestions, though. :-)
> > > > > > >
> > > > > > > I didn't think to try running a regular program without plugin calls to see if it would do the self start. I'll try that first to maybe narrow down things a bit.
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > Mike
> > > > > > >
> > > > > > > On Jul 29, 2012, at 5:19 PM, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > > Hi Mike,
> > > > > > > >
> > > > > > > > Not sure why mine didn't work. But anyways yours is good.
> > > > > > > >
> > > > > > > > I think if you remove the line:
> > > > > > > >
> > > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > > >
> > > > > > > > Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
> > > > > > > >
> > > > > > > > I haven't seen that weird self start of Mach3. Hard to imagine how our Plugin could be doing that. Please try the lockdown version to see if it persists.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > Sent: Saturday, July 28, 2012 11:31 AM
> > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > >
> > > > > > > >
> > > > > > > > Tom,
> > > > > > > >
> > > > > > > > I made the adjustments you suggested to the notifytap program, and I could not get it to run the tap sequence. It would position itself in preparation, then just skip over the tap part and move on to the code after.
> > > > > > > >
> > > > > > > > I fiddled around with it and just ended up adding some lines in the c program to do the retract. It seems to work ok. I uploaded the c prog and my XML to my folder. Could you let me know if it is an acceptable way to do the retract?
> > > > > > > >
> > > > > > > > Also, an odd thing happens when using the edit button in Mach. I press the button, and it brings up the txt file. I make my adjustment, save it, and when I close the file the program immediately runs in mach without my consent. If I hit the emergency stop, the program stops.....but when I re-initialize it will start again where it was when I hit the E-stop. I wonder if this is just some weird anomaly in MachTurn. I am using 3.043.062....because I heard that the lockdown version had problems in Turn. Maybe I should try the lockdown.
> > > > > > > >
> > > > > > > > Any ideas on that?
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > >
> > > > > > > > Mike
> > > > > > > >
> > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > > > > >
> > > > > > > > > Tom,
> > > > > > > > >
> > > > > > > > > Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
> > > > > > > > >
> > > > > > > > > Thanks very much,
> > > > > > > > >
> > > > > > > > > Mike
> > > > > > > > >
> > > > > > > > > On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > > Hi Mike,
> > > > > > > > > >
> > > > > > > > > > I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
> > > > > > > > > >
> > > > > > > > > > To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
> > > > > > > > > >
> > > > > > > > > > // retract fully
> > > > > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > > > > > and also add the +ZDist as shown below
> > > > > > > > > >
> > > > > > > > > > Delay_sec(1.0);
> > > > > > > > > > Move(ZAXIS,Z0+ZDist); // move to where we ended up
> > > > > > > > > > while (!CheckDone(ZAXIS)) ;
> > > > > > > > > > Let me know how much of this works :}
> > > > > > > > > >
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > Sent: Friday, July 27, 2012 1:35 PM
> > > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Tom,
> > > > > > > > > >
> > > > > > > > > > I mean I did not set up the spindle as a motor output in Mach.
> > > > > > > > > >
> > > > > > > > > > I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
> > > > > > > > > >
> > > > > > > > > > If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
> > > > > > > > > >
> > > > > > > > > > So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
> > > > > > > > > >
> > > > > > > > > > I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
> > > > > > > > > >
> > > > > > > > > > Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
> > > > > > > > > >
> > > > > > > > > > Let me know what you think.
> > > > > > > > > >
> > > > > > > > > > Thanks,
> > > > > > > > > >
> > > > > > > > > > Mike
> > > > > > > > > >
> > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Hi Mike,
> > > > > > > > > > > ÃÆ'Æ'‚
> > > > > > > > > > > I'm not sure I follow all that.ÃÆ'Æ'‚ But if your happy, I'm happy.
> > > > > > > > > > > ÃÆ'Æ'‚
> > > > > > > > > > > Regards
> > > > > > > > > > > TK
> > > > > > > > > > >
> > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > Sent: Friday, July 27, 2012 8:09 AM
> > > > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > ÃÆ'Æ'‚
> > > > > > > > > > >
> > > > > > > > > > > Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
> > > > > > > > > > >
> > > > > > > > > > > I hope that is right.
> > > > > > > > > > >
> > > > > > > > > > > Its working right so far.
> > > > > > > > > > >
> > > > > > > > > > > On to the rigid tap journey.
> > > > > > > > > > >
> > > > > > > > > > > Thanks,
> > > > > > > > > > >
> > > > > > > > > > > Mike
> > > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > Oh....Ok. It works great as far as direction goes, now.
> > > > > > > > > > > >
> > > > > > > > > > > > I don't know what I saved/sent.....I thought it was right, but obviously not.
> > > > > > > > > > > >
> > > > > > > > > > > > Accurate speed is now what I'm after.
> > > > > > > > > > > >
> > > > > > > > > > > > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> > > > > > > > > > > >
> > > > > > > > > > > > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> > > > > > > > > > > >
> > > > > > > > > > > > How do I set up the spindle in Mach motor config?
> > > > > > > > > > > >
> > > > > > > > > > > > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> > > > > > > > > > > >
> > > > > > > > > > > > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> > > > > > > > > > > >
> > > > > > > > > > > > I messed with it for a bit but didn't seem to make much headway.
> > > > > > > > > > > >
> > > > > > > > > > > > Thanks again,
> > > > > > > > > > > >
> > > > > > > > > > > > Mike
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > > > >
> > > > > > > > > > > > > Hi Mike,
> > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚
> > > > > > > > > > > > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ Switch relays or whatever.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ I assume your spindle can jog + and - like an servo?ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ I've uploaded a file to your folder that may work for you.
> > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚
> > > > > > > > > > > > > The XML file doesn't seem to have any Dynomotion Configuration in it.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ Did you upload the right file?ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ Did you save the Mach3 Settings?
> > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚
> > > > > > > > > > > > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚
> > > > > > > > > > > > > Let me know haw far this gets you.
> > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚
> > > > > > > > > > > > > Regards
> > > > > > > > > > > > > TK
> > > > > > > > > > > > >
> > > > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > > > Sent: Thursday, July 26, 2012 3:12 PM
> > > > > > > > > > > > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚
> > > > > > > > > > > > > Tom,
> > > > > > > > > > > > >
> > > > > > > > > > > > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > > > > > > > > > > > >
> > > > > > > > > > > > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > > > > > > > > > > > >
> > > > > > > > > > > > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > > > > > > > > > > > >
> > > > > > > > > > > > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > > > > > > > > > > > >
> > > > > > > > > > > > > I have attached my XML and spindle prog in my folder.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Please help.....I've tried most everything.
> > > > > > > > > > > > >
> > > > > > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > > > > > > > > > >
> > > > > > > > > > > > > Mike
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 5488 From: Tom Kerekes Date: 7/31/2012
Subject: Re: Mach 3 Spindle struggle
Hi Mike,

I see a bug.  The last state of the feedhold was not being saved.  I uploaded a new file that saves the feedhold state.  Please give that a try.

Regarding the two slaving techniques: slaving to actual Spindle position is probably the best.  If there is no Spindle positioning error then it doesn't matter both techniques will be the same.  Your requirements are very tight.  To do a 5mm pitch thread with 1um accuracy the spindle position must be known to 1/5000th of a rev!

When slaving Z to actual Spindle Position the accuracy of the spindle servo theoretically doesn't matter because the Z axis will track how it actually moves.  However if the measured Spindle position is noisy, for example dithers +/- several counts due to vibration, then having the Z Servo attempt to track that may cause more harm than good.  In such a case it may be better to just have the Z axis follow the perfectly accurate and smooth Spindle trajectory instead.

It is easy to switch between modes.  Change the line:

    MoveExp(ZAXIS,(chan[SPINDLE_AXIS].Dest-S0)*SlaveGain+Z0, TAU);   

to:

    MoveExp(ZAXIS,(chan[SPINDLE_AXIS].Position-S0)*SlaveGain+Z0, TAU);


Regards
TK
Group: DynoMotion Message: 5489 From: michaelthomasn Date: 7/31/2012
Subject: Re: Mach 3 Spindle struggle
Tom,

It does stop now.....but only for a second before it moves to the x retract. It then continues as if it were never stopped.

I wonder if it has anything to do with the lines I added for the x retract?

Mike

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Mike,
>
> I see a bug.  The last state of the feedhold was not being saved.  I uploaded a new file that saves the feedhold state.  Please give that a try.
>
>
> Regarding the two slaving techniques: slaving to actual Spindle position is probably the best.  If there is no Spindle positioning error then it doesn't matter both techniques will be the same.  Your requirements are very tight.  To do a 5mm pitch thread with 1um accuracy the spindle position must be known to 1/5000th of a rev!
>
> When slaving Z to actual Spindle Position the accuracy of the spindle servo theoretically doesn't matter because the Z axis will track how it actually moves.  However if the measured Spindle position is noisy, for example dithers +/- several counts due to vibration, then having the Z Servo attempt to track that may cause more harm than good.  In such a case it may be better to just have the Z axis follow the perfectly accurate and smooth Spindle trajectory instead.
>
> It is easy to switch between modes.  Change the line:
>
>
>     MoveExp(ZAXIS,(chan[SPINDLE_AXIS].Dest-S0)*SlaveGain+Z0, TAU);   
>
>
> to:
>
>     MoveExp(ZAXIS,(chan[SPINDLE_AXIS].Position-S0)*SlaveGain+Z0, TAU);
>
>
>
> Regards
> TK
>
>
> ________________________________
> From: michaelthomasn <michaelniksch@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, July 31, 2012 8:23 AM
> Subject: [DynoMotion] Re: Mach 3 Spindle struggle
>
>
>  
> Tom
>
> I just finished trying it out. It does not stop.....the really odd thing is that it actually rolls on by the set tap depth and keeps on tapping until I stop it with the Estop button. I verified that bit 50 is being set when I push feedhold.
>
> Mike
>
> --- In DynoMotion@yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> >
> > Great.....thanks a lot. I will give it a try tomorrow.
> >
> > As far as the two techniques are concerned....I would look for whatever is the most accurate. I didn't realize there was a choice.
> >
> > Is it a pain to do the second technique?
> >
> > The owner of this shop makes ballscrews and very high precision shafts that are checked by cmm. The idea was to make this machine dedicated for thread grinding carbide. The one thing that is in our favor is that the spindle moves very slow when thread grinding.
> > Like 1 rpm or less....so I think everything will have an easier time tracking at the slow speeds. Even the multi start threads seldom have a pitch over 5mm.
> >
> > The machine has proven itself mechanically capable of maintaining .00005" in standard cylindrical grinding.....so as much accuracy that can be afforded electronically would be ideal.
> >
> > Again.....the thing moves really slow.
> >
> > Tell me what you think.
> >
> > Thanks again,
> >
> > Mike
> >
> >
> >
> >
> >
> >
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Mike,
> > >  
> > > Feed hold in the middle of Rigid tapping?  You want everything :}
> > >  
> > > Rigid Tapping is different than normal tapping as the Z is slaved to the Spindle.  I think we would need to stop the Spindle.  I've tried to add this to the C code and uploaded the file to your folder:
> > >  
> > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > >  
> > > It looks for your virtual bit and Jogs the Spindel Axis to zero speed whenever the virtual bit transitions high.  It resumes the commanded spindle motion when the virtual bit transitions low.
> > >  
> > > Hopefully this might work.
> > >  
> > > BTW there are two techniques for rigid tapping.  The Z motion can be slaved to the commanded motion of the Spindle or it can be slaved to the actual position of the Spindle.  There are advantages and disadvantages to both techniques.  Currently your C progam is doing the first technique.  If your accuracy is good I would leave this alone.  But just wanted to point this out as an option.
> > >  
> > > Regards
> > > TK
> > >  
> > >  
> > > From: michaelthomasn <michaelniksch@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Monday, July 30, 2012 2:27 PM
> > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > >
> > >
> > >  
> > > Tom, is there any way to make a feedhold while M84 (thread grind for me) is executing?
> > >
> > > I have feedhold in mach trigger virtual bit 50, and start clears the bit. Then a watchdog in Kflop looks for bit 50 to stop or resume coordinated motion. This seems to work fine during gcode, but does not during the M84.
> > >
> > > Thanks,
> > >
> > > Mike
> > >
> > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > >
> > > > You got it......thanks again.
> > > >
> > > > Mike
> > > >
> > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Mike,
> > > > >  
> > > > > I think whenever Mach3 generates the tool path it Interprets through all the GCode which calls the M codes and triggers rigid tapping and so forth.
> > > > >  
> > > > > Try the Mach3 | Config | General Config | Ignore M Calls while loading option.
> > > > >  
> > > > > Otherwise there may be a way to tell if it is a tool path regeneration inside the M84 and skip doing anything.
> > > > >  
> > > > > Regards
> > > > > TK 
> > > > >
> > > > > From: michaelthomasn <michaelniksch@>
> > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > Sent: Monday, July 30, 2012 10:22 AM
> > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > >
> > > > >
> > > > >  
> > > > > Ok....the problem seems to stem from mach trying to generate the toolpath. I have just been pressing cancel. It wants to hang up on the m84.
> > > > >
> > > > > If I got to the top of the screen and select view/regen toolpath....the same thing will happen.
> > > > >
> > > > > Ideas???
> > > > >
> > > > > Mike
> > > > >
> > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > >
> > > > > > Tom,
> > > > > >
> > > > > > I installed the lockdown version. It still does the same things. If I use the load button, or the edit button to open or modify a program with a notify plugin......it starts on its own on return to mach.
> > > > > >
> > > > > > It does not do this with a regular g code pgm.
> > > > > >
> > > > > > I am using the turn version with an different screenset.
> > > > > > ??????
> > > > > >
> > > > > > Mike
> > > > > >
> > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > > >
> > > > > > > Tom,
> > > > > > >
> > > > > > > Yours may not have worked because I may have not followed your directions properly.....lol. It let me know where to look, though.
> > > > > > >
> > > > > > > I left the DoTap(-ZDist, RetractRate, TPI); in because I need the spindle axis to return to exactly where it started when doing the multiple passes necessary for the operation and I didn't know how to do it otherwise. I'm open to suggestions, though. :-)
> > > > > > >
> > > > > > > I didn't think to try running a regular program without plugin calls to see if it would do the self start. I'll try that first to maybe narrow down things a bit.
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > Mike
> > > > > > >
> > > > > > > On Jul 29, 2012, at 5:19 PM, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > > Hi Mike,
> > > > > > > >
> > > > > > > > Not sure why mine didn't work. But anyways yours is good.
> > > > > > > >
> > > > > > > > I think if you remove the line:
> > > > > > > >
> > > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > > >
> > > > > > > > Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
> > > > > > > >
> > > > > > > > I haven't seen that weird self start of Mach3. Hard to imagine how our Plugin could be doing that. Please try the lockdown version to see if it persists.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > Sent: Saturday, July 28, 2012 11:31 AM
> > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > >
> > > > > > > >
> > > > > > > > Tom,
> > > > > > > >
> > > > > > > > I made the adjustments you suggested to the notifytap program, and I could not get it to run the tap sequence. It would position itself in preparation, then just skip over the tap part and move on to the code after.
> > > > > > > >
> > > > > > > > I fiddled around with it and just ended up adding some lines in the c program to do the retract. It seems to work ok. I uploaded the c prog and my XML to my folder. Could you let me know if it is an acceptable way to do the retract?
> > > > > > > >
> > > > > > > > Also, an odd thing happens when using the edit button in Mach. I press the button, and it brings up the txt file. I make my adjustment, save it, and when I close the file the program immediately runs in mach without my consent. If I hit the emergency stop, the program stops.....but when I re-initialize it will start again where it was when I hit the E-stop. I wonder if this is just some weird anomaly in MachTurn. I am using 3.043.062....because I heard that the lockdown version had problems in Turn. Maybe I should try the lockdown.
> > > > > > > >
> > > > > > > > Any ideas on that?
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > >
> > > > > > > > Mike
> > > > > > > >
> > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > > > > >
> > > > > > > > > Tom,
> > > > > > > > >
> > > > > > > > > Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
> > > > > > > > >
> > > > > > > > > Thanks very much,
> > > > > > > > >
> > > > > > > > > Mike
> > > > > > > > >
> > > > > > > > > On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > > Hi Mike,
> > > > > > > > > >
> > > > > > > > > > I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
> > > > > > > > > >
> > > > > > > > > > To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
> > > > > > > > > >
> > > > > > > > > > // retract fully
> > > > > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > > > > > and also add the +ZDist as shown below
> > > > > > > > > >
> > > > > > > > > > Delay_sec(1.0);
> > > > > > > > > > Move(ZAXIS,Z0+ZDist); // move to where we ended up
> > > > > > > > > > while (!CheckDone(ZAXIS)) ;
> > > > > > > > > > Let me know how much of this works :}
> > > > > > > > > >
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > Sent: Friday, July 27, 2012 1:35 PM
> > > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Tom,
> > > > > > > > > >
> > > > > > > > > > I mean I did not set up the spindle as a motor output in Mach.
> > > > > > > > > >
> > > > > > > > > > I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
> > > > > > > > > >
> > > > > > > > > > If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
> > > > > > > > > >
> > > > > > > > > > So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
> > > > > > > > > >
> > > > > > > > > > I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
> > > > > > > > > >
> > > > > > > > > > Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
> > > > > > > > > >
> > > > > > > > > > Let me know what you think.
> > > > > > > > > >
> > > > > > > > > > Thanks,
> > > > > > > > > >
> > > > > > > > > > Mike
> > > > > > > > > >
> > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Hi Mike,
> > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡
> > > > > > > > > > > I'm not sure I follow all that.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ But if your happy, I'm happy.
> > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡
> > > > > > > > > > > Regards
> > > > > > > > > > > TK
> > > > > > > > > > >
> > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > Sent: Friday, July 27, 2012 8:09 AM
> > > > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡
> > > > > > > > > > >
> > > > > > > > > > > Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
> > > > > > > > > > >
> > > > > > > > > > > I hope that is right.
> > > > > > > > > > >
> > > > > > > > > > > Its working right so far.
> > > > > > > > > > >
> > > > > > > > > > > On to the rigid tap journey.
> > > > > > > > > > >
> > > > > > > > > > > Thanks,
> > > > > > > > > > >
> > > > > > > > > > > Mike
> > > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > Oh....Ok. It works great as far as direction goes, now.
> > > > > > > > > > > >
> > > > > > > > > > > > I don't know what I saved/sent.....I thought it was right, but obviously not.
> > > > > > > > > > > >
> > > > > > > > > > > > Accurate speed is now what I'm after.
> > > > > > > > > > > >
> > > > > > > > > > > > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> > > > > > > > > > > >
> > > > > > > > > > > > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> > > > > > > > > > > >
> > > > > > > > > > > > How do I set up the spindle in Mach motor config?
> > > > > > > > > > > >
> > > > > > > > > > > > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> > > > > > > > > > > >
> > > > > > > > > > > > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> > > > > > > > > > > >
> > > > > > > > > > > > I messed with it for a bit but didn't seem to make much headway.
> > > > > > > > > > > >
> > > > > > > > > > > > Thanks again,
> > > > > > > > > > > >
> > > > > > > > > > > > Mike
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > > > >
> > > > > > > > > > > > > Hi Mike,
> > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡
> > > > > > > > > > > > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ Switch relays or whatever.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ I assume your spindle can jog + and - like an servo?ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ I've uploaded a file to your folder that may work for you.
> > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡
> > > > > > > > > > > > > The XML file doesn't seem to have any Dynomotion Configuration in it.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ Did you upload the right file?ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ Did you save the Mach3 Settings?
> > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡
> > > > > > > > > > > > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡
> > > > > > > > > > > > > Let me know haw far this gets you.
> > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡
> > > > > > > > > > > > > Regards
> > > > > > > > > > > > > TK
> > > > > > > > > > > > >
> > > > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > > > Sent: Thursday, July 26, 2012 3:12 PM
> > > > > > > > > > > > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡
> > > > > > > > > > > > > Tom,
> > > > > > > > > > > > >
> > > > > > > > > > > > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > > > > > > > > > > > >
> > > > > > > > > > > > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > > > > > > > > > > > >
> > > > > > > > > > > > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > > > > > > > > > > > >
> > > > > > > > > > > > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > > > > > > > > > > > >
> > > > > > > > > > > > > I have attached my XML and spindle prog in my folder.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Please help.....I've tried most everything.
> > > > > > > > > > > > >
> > > > > > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > > > > > > > > > >
> > > > > > > > > > > > > Mike
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 5493 From: Tom Kerekes Date: 7/31/2012
Subject: Re: Mach 3 Spindle struggle
Hi Mike,
 
Another oops on my end.  The Tap Cycle ends as soon as CheckDone(SPINDLE_AXIS) becomes true.  And Jogging to zero speed will also set CheckDone and exit as if it finished.  I changed it too keep looping and waiting while CheckDone is false or we are in FeedHold.
 
Try the V2 I uploaded.
 
Regards
TK

Group: DynoMotion Message: 5496 From: michaelthomasn Date: 7/31/2012
Subject: Re: Mach 3 Spindle struggle
Tom....No problem here.

I'll give it a go in the morning.

Thanks a ton for working on this.

Mike
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Mike,
>  
> Another oops on my end.  The Tap Cycle ends as soon as CheckDone(SPINDLE_AXIS) becomes true.  And Jogging to zero speed will also set CheckDone and exit as if it finished.  I changed it too keep looping and waiting while CheckDone is false or we are in FeedHold.
>  
> Try the V2 I uploaded.
>  
> Regards
> TK
>
> From: michaelthomasn <michaelniksch@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, July 31, 2012 10:04 AM
> Subject: [DynoMotion] Re: Mach 3 Spindle struggle
>
>
>  
> Tom,
>
> It does stop now.....but only for a second before it moves to the x retract. It then continues as if it were never stopped.
>
> I wonder if it has anything to do with the lines I added for the x retract?
>
> Mike
>
> --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Mike,
> >
> > I see a bug.  The last state of the feedhold was not being saved.  I uploaded a new file that saves the feedhold state.  Please give that a try.
> >
> >
> > Regarding the two slaving techniques: slaving to actual Spindle position is probably the best.  If there is no Spindle positioning error then it doesn't matter both techniques will be the same.  Your requirements are very tight.  To do a 5mm pitch thread with 1um accuracy the spindle position must be known to 1/5000th of a rev!
> >
> > When slaving Z to actual Spindle Position the accuracy of the spindle servo theoretically doesn't matter because the Z axis will track how it actually moves.  However if the measured Spindle position is noisy, for example dithers +/- several counts due to vibration, then having the Z Servo attempt to track that may cause more harm than good.  In such a case it may be better to just have the Z axis follow the perfectly accurate and smooth Spindle trajectory instead.
> >
> > It is easy to switch between modes.  Change the line:
> >
> >
> >     MoveExp(ZAXIS,(chan[SPINDLE_AXIS].Dest-S0)*SlaveGain+Z0, TAU);   
> >
> >
> > to:
> >
> >     MoveExp(ZAXIS,(chan[SPINDLE_AXIS].Position-S0)*SlaveGain+Z0, TAU);
> >
> >
> >
> > Regards
> > TK
> >
> >
> > ________________________________
> > From: michaelthomasn <michaelniksch@>
> > To: mailto:DynoMotion%40yahoogroups.com
> > Sent: Tuesday, July 31, 2012 8:23 AM
> > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> >
> >
> >  
> > Tom
> >
> > I just finished trying it out. It does not stop.....the really odd thing is that it actually rolls on by the set tap depth and keeps on tapping until I stop it with the Estop button. I verified that bit 50 is being set when I push feedhold.
> >
> > Mike
> >
> > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > >
> > > Great.....thanks a lot. I will give it a try tomorrow.
> > >
> > > As far as the two techniques are concerned....I would look for whatever is the most accurate. I didn't realize there was a choice.
> > >
> > > Is it a pain to do the second technique?
> > >
> > > The owner of this shop makes ballscrews and very high precision shafts that are checked by cmm. The idea was to make this machine dedicated for thread grinding carbide. The one thing that is in our favor is that the spindle moves very slow when thread grinding.
> > > Like 1 rpm or less....so I think everything will have an easier time tracking at the slow speeds. Even the multi start threads seldom have a pitch over 5mm.
> > >
> > > The machine has proven itself mechanically capable of maintaining .00005" in standard cylindrical grinding.....so as much accuracy that can be afforded electronically would be ideal.
> > >
> > > Again.....the thing moves really slow.
> > >
> > > Tell me what you think.
> > >
> > > Thanks again,
> > >
> > > Mike
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Mike,
> > > >  
> > > > Feed hold in the middle of Rigid tapping?  You want everything :}
> > > >  
> > > > Rigid Tapping is different than normal tapping as the Z is slaved to the Spindle.  I think we would need to stop the Spindle.  I've tried to add this to the C code and uploaded the file to your folder:
> > > >  
> > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > >  
> > > > It looks for your virtual bit and Jogs the Spindel Axis to zero speed whenever the virtual bit transitions high.  It resumes the commanded spindle motion when the virtual bit transitions low.
> > > >  
> > > > Hopefully this might work.
> > > >  
> > > > BTW there are two techniques for rigid tapping.  The Z motion can be slaved to the commanded motion of the Spindle or it can be slaved to the actual position of the Spindle.  There are advantages and disadvantages to both techniques.  Currently your C progam is doing the first technique.  If your accuracy is good I would leave this alone.  But just wanted to point this out as an option.
> > > >  
> > > > Regards
> > > > TK
> > > >  
> > > >  
> > > > From: michaelthomasn <michaelniksch@>
> > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > Sent: Monday, July 30, 2012 2:27 PM
> > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > >
> > > >
> > > >  
> > > > Tom, is there any way to make a feedhold while M84 (thread grind for me) is executing?
> > > >
> > > > I have feedhold in mach trigger virtual bit 50, and start clears the bit. Then a watchdog in Kflop looks for bit 50 to stop or resume coordinated motion. This seems to work fine during gcode, but does not during the M84.
> > > >
> > > > Thanks,
> > > >
> > > > Mike
> > > >
> > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > >
> > > > > You got it......thanks again.
> > > > >
> > > > > Mike
> > > > >
> > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Mike,
> > > > > > ÃÆ'‚ 
> > > > > > I think whenever Mach3 generates the tool path it Interprets through all the GCode which calls the M codes and triggers rigid tapping and so forth.
> > > > > > ÃÆ'‚ 
> > > > > > Try the Mach3 | Config | General Config | IgnoreÃÆ'‚ M Calls while loading option.
> > > > > > ÃÆ'‚ 
> > > > > > Otherwise there may be a way to tell if it is a tool path regeneration inside the M84 and skip doing anything.
> > > > > > ÃÆ'‚ 
> > > > > > Regards
> > > > > > TKÃÆ'‚ 
> > > > > >
> > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > Sent: Monday, July 30, 2012 10:22 AM
> > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > >
> > > > > >
> > > > > > ÃÆ'‚ 
> > > > > > Ok....the problem seems to stem from mach trying to generate the toolpath. I have just been pressing cancel. It wants to hang up on the m84.
> > > > > >
> > > > > > If I got to the top of the screen and select view/regen toolpath....the same thing will happen.
> > > > > >
> > > > > > Ideas???
> > > > > >
> > > > > > Mike
> > > > > >
> > > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > > >
> > > > > > > Tom,
> > > > > > >
> > > > > > > I installed the lockdown version. It still does the same things. If I use the load button, or the edit button to open or modify a program with a notify plugin......it starts on its own on return to mach.
> > > > > > >
> > > > > > > It does not do this with a regular g code pgm.
> > > > > > >
> > > > > > > I am using the turn version with an different screenset.
> > > > > > > ??????
> > > > > > >
> > > > > > > Mike
> > > > > > >
> > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > > > >
> > > > > > > > Tom,
> > > > > > > >
> > > > > > > > Yours may not have worked because I may have not followed your directions properly.....lol. It let me know where to look, though.
> > > > > > > >
> > > > > > > > I left the DoTap(-ZDist, RetractRate, TPI); in because I need the spindle axis to return to exactly where it started when doing the multiple passes necessary for the operation and I didn't know how to do it otherwise. I'm open to suggestions, though. :-)
> > > > > > > >
> > > > > > > > I didn't think to try running a regular program without plugin calls to see if it would do the self start. I'll try that first to maybe narrow down things a bit.
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > >
> > > > > > > > Mike
> > > > > > > >
> > > > > > > > On Jul 29, 2012, at 5:19 PM, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > > Hi Mike,
> > > > > > > > >
> > > > > > > > > Not sure why mine didn't work. But anyways yours is good.
> > > > > > > > >
> > > > > > > > > I think if you remove the line:
> > > > > > > > >
> > > > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > > > >
> > > > > > > > > Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
> > > > > > > > >
> > > > > > > > > I haven't seen that weird self start of Mach3. Hard to imagine how our Plugin could be doing that. Please try the lockdown version to see if it persists.
> > > > > > > > >
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > Sent: Saturday, July 28, 2012 11:31 AM
> > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Tom,
> > > > > > > > >
> > > > > > > > > I made the adjustments you suggested to the notifytap program, and I could not get it to run the tap sequence. It would position itself in preparation, then just skip over the tap part and move on to the code after.
> > > > > > > > >
> > > > > > > > > I fiddled around with it and just ended up adding some lines in the c program to do the retract. It seems to work ok. I uploaded the c prog and my XML to my folder. Could you let me know if it is an acceptable way to do the retract?
> > > > > > > > >
> > > > > > > > > Also, an odd thing happens when using the edit button in Mach. I press the button, and it brings up the txt file. I make my adjustment, save it, and when I close the file the program immediately runs in mach without my consent. If I hit the emergency stop, the program stops.....but when I re-initialize it will start again where it was when I hit the E-stop. I wonder if this is just some weird anomaly in MachTurn. I am using 3.043.062....because I heard that the lockdown version had problems in Turn. Maybe I should try the lockdown.
> > > > > > > > >
> > > > > > > > > Any ideas on that?
> > > > > > > > >
> > > > > > > > > Thanks,
> > > > > > > > >
> > > > > > > > > Mike
> > > > > > > > >
> > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > > > > > >
> > > > > > > > > > Tom,
> > > > > > > > > >
> > > > > > > > > > Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
> > > > > > > > > >
> > > > > > > > > > Thanks very much,
> > > > > > > > > >
> > > > > > > > > > Mike
> > > > > > > > > >
> > > > > > > > > > On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > > Hi Mike,
> > > > > > > > > > >
> > > > > > > > > > > I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
> > > > > > > > > > >
> > > > > > > > > > > To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
> > > > > > > > > > >
> > > > > > > > > > > // retract fully
> > > > > > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > > > > > > and also add the +ZDist as shown below
> > > > > > > > > > >
> > > > > > > > > > > Delay_sec(1.0);
> > > > > > > > > > > Move(ZAXIS,Z0+ZDist); // move to where we ended up
> > > > > > > > > > > while (!CheckDone(ZAXIS)) ;
> > > > > > > > > > > Let me know how much of this works :}
> > > > > > > > > > >
> > > > > > > > > > > TK
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > Sent: Friday, July 27, 2012 1:35 PM
> > > > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > Tom,
> > > > > > > > > > >
> > > > > > > > > > > I mean I did not set up the spindle as a motor output in Mach.
> > > > > > > > > > >
> > > > > > > > > > > I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
> > > > > > > > > > >
> > > > > > > > > > > If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
> > > > > > > > > > >
> > > > > > > > > > > So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
> > > > > > > > > > >
> > > > > > > > > > > I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
> > > > > > > > > > >
> > > > > > > > > > > Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
> > > > > > > > > > >
> > > > > > > > > > > Let me know what you think.
> > > > > > > > > > >
> > > > > > > > > > > Thanks,
> > > > > > > > > > >
> > > > > > > > > > > Mike
> > > > > > > > > > >
> > > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > Hi Mike,
> > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡
> > > > > > > > > > > > I'm not sure I follow all that.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ But if your happy, I'm happy.
> > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡
> > > > > > > > > > > > Regards
> > > > > > > > > > > > TK
> > > > > > > > > > > >
> > > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > > Sent: Friday, July 27, 2012 8:09 AM
> > > > > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡
> > > > > > > > > > > >
> > > > > > > > > > > > Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
> > > > > > > > > > > >
> > > > > > > > > > > > I hope that is right.
> > > > > > > > > > > >
> > > > > > > > > > > > Its working right so far.
> > > > > > > > > > > >
> > > > > > > > > > > > On to the rigid tap journey.
> > > > > > > > > > > >
> > > > > > > > > > > > Thanks,
> > > > > > > > > > > >
> > > > > > > > > > > > Mike
> > > > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > Oh....Ok. It works great as far as direction goes, now.
> > > > > > > > > > > > >
> > > > > > > > > > > > > I don't know what I saved/sent.....I thought it was right, but obviously not.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Accurate speed is now what I'm after.
> > > > > > > > > > > > >
> > > > > > > > > > > > > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> > > > > > > > > > > > >
> > > > > > > > > > > > > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> > > > > > > > > > > > >
> > > > > > > > > > > > > How do I set up the spindle in Mach motor config?
> > > > > > > > > > > > >
> > > > > > > > > > > > > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> > > > > > > > > > > > >
> > > > > > > > > > > > > I messed with it for a bit but didn't seem to make much headway.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Thanks again,
> > > > > > > > > > > > >
> > > > > > > > > > > > > Mike
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Hi Mike,
> > > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡
> > > > > > > > > > > > > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ Switch relays or whatever.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ I assume your spindle can jog + and - like an
> servo?ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ I've uploaded a file to your folder that may work for you.
> > > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡
> > > > > > > > > > > > > > The XML file doesn't seem to have any Dynomotion Configuration in it.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ Did you upload the right file?ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ Did you save the Mach3 Settings?
> > > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡
> > > > > > > > > > > > > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡
> > > > > > > > > > > > > > Let me know haw far this gets you.
> > > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡
> > > > > > > > > > > > > > Regards
> > > > > > > > > > > > > > TK
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > > > > Sent: Thursday, July 26, 2012 3:12 PM
> > > > > > > > > > > > > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡
> > > > > > > > > > > > > > Tom,
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > I have attached my XML and spindle prog in my folder.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Please help.....I've tried most everything.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Mike
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 5502 From: michaelthomasn Date: 8/1/2012
Subject: Re: Mach 3 Spindle struggle
Tom,

The feedhold works great, now.

Thanks again,

Mike


--- In DynoMotion@yahoogroups.com, "michaelthomasn" <michaelniksch@...> wrote:
>
> Tom....No problem here.
>
> I'll give it a go in the morning.
>
> Thanks a ton for working on this.
>
> Mike
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Mike,
> >  
> > Another oops on my end.  The Tap Cycle ends as soon as CheckDone(SPINDLE_AXIS) becomes true.  And Jogging to zero speed will also set CheckDone and exit as if it finished.  I changed it too keep looping and waiting while CheckDone is false or we are in FeedHold.
> >  
> > Try the V2 I uploaded.
> >  
> > Regards
> > TK
> >
> > From: michaelthomasn <michaelniksch@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tuesday, July 31, 2012 10:04 AM
> > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> >
> >
> >  
> > Tom,
> >
> > It does stop now.....but only for a second before it moves to the x retract. It then continues as if it were never stopped.
> >
> > I wonder if it has anything to do with the lines I added for the x retract?
> >
> > Mike
> >
> > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Mike,
> > >
> > > I see a bug.  The last state of the feedhold was not being saved.  I uploaded a new file that saves the feedhold state.  Please give that a try.
> > >
> > >
> > > Regarding the two slaving techniques: slaving to actual Spindle position is probably the best.  If there is no Spindle positioning error then it doesn't matter both techniques will be the same.  Your requirements are very tight.  To do a 5mm pitch thread with 1um accuracy the spindle position must be known to 1/5000th of a rev!
> > >
> > > When slaving Z to actual Spindle Position the accuracy of the spindle servo theoretically doesn't matter because the Z axis will track how it actually moves.  However if the measured Spindle position is noisy, for example dithers +/- several counts due to vibration, then having the Z Servo attempt to track that may cause more harm than good.  In such a case it may be better to just have the Z axis follow the perfectly accurate and smooth Spindle trajectory instead.
> > >
> > > It is easy to switch between modes.  Change the line:
> > >
> > >
> > >     MoveExp(ZAXIS,(chan[SPINDLE_AXIS].Dest-S0)*SlaveGain+Z0, TAU);   
> > >
> > >
> > > to:
> > >
> > >     MoveExp(ZAXIS,(chan[SPINDLE_AXIS].Position-S0)*SlaveGain+Z0, TAU);
> > >
> > >
> > >
> > > Regards
> > > TK
> > >
> > >
> > > ________________________________
> > > From: michaelthomasn <michaelniksch@>
> > > To: mailto:DynoMotion%40yahoogroups.com
> > > Sent: Tuesday, July 31, 2012 8:23 AM
> > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > >
> > >
> > >  
> > > Tom
> > >
> > > I just finished trying it out. It does not stop.....the really odd thing is that it actually rolls on by the set tap depth and keeps on tapping until I stop it with the Estop button. I verified that bit 50 is being set when I push feedhold.
> > >
> > > Mike
> > >
> > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > >
> > > > Great.....thanks a lot. I will give it a try tomorrow.
> > > >
> > > > As far as the two techniques are concerned....I would look for whatever is the most accurate. I didn't realize there was a choice.
> > > >
> > > > Is it a pain to do the second technique?
> > > >
> > > > The owner of this shop makes ballscrews and very high precision shafts that are checked by cmm. The idea was to make this machine dedicated for thread grinding carbide. The one thing that is in our favor is that the spindle moves very slow when thread grinding.
> > > > Like 1 rpm or less....so I think everything will have an easier time tracking at the slow speeds. Even the multi start threads seldom have a pitch over 5mm.
> > > >
> > > > The machine has proven itself mechanically capable of maintaining .00005" in standard cylindrical grinding.....so as much accuracy that can be afforded electronically would be ideal.
> > > >
> > > > Again.....the thing moves really slow.
> > > >
> > > > Tell me what you think.
> > > >
> > > > Thanks again,
> > > >
> > > > Mike
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Mike,
> > > > >  
> > > > > Feed hold in the middle of Rigid tapping?  You want everything :}
> > > > >  
> > > > > Rigid Tapping is different than normal tapping as the Z is slaved to the Spindle.  I think we would need to stop the Spindle.  I've tried to add this to the C code and uploaded the file to your folder:
> > > > >  
> > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > >  
> > > > > It looks for your virtual bit and Jogs the Spindel Axis to zero speed whenever the virtual bit transitions high.  It resumes the commanded spindle motion when the virtual bit transitions low.
> > > > >  
> > > > > Hopefully this might work.
> > > > >  
> > > > > BTW there are two techniques for rigid tapping.  The Z motion can be slaved to the commanded motion of the Spindle or it can be slaved to the actual position of the Spindle.  There are advantages and disadvantages to both techniques.  Currently your C progam is doing the first technique.  If your accuracy is good I would leave this alone.  But just wanted to point this out as an option.
> > > > >  
> > > > > Regards
> > > > > TK
> > > > >  
> > > > >  
> > > > > From: michaelthomasn <michaelniksch@>
> > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > Sent: Monday, July 30, 2012 2:27 PM
> > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > >
> > > > >
> > > > >  
> > > > > Tom, is there any way to make a feedhold while M84 (thread grind for me) is executing?
> > > > >
> > > > > I have feedhold in mach trigger virtual bit 50, and start clears the bit. Then a watchdog in Kflop looks for bit 50 to stop or resume coordinated motion. This seems to work fine during gcode, but does not during the M84.
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Mike
> > > > >
> > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > >
> > > > > > You got it......thanks again.
> > > > > >
> > > > > > Mike
> > > > > >
> > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Mike,
> > > > > > > ÃÆ'‚ 
> > > > > > > I think whenever Mach3 generates the tool path it Interprets through all the GCode which calls the M codes and triggers rigid tapping and so forth.
> > > > > > > ÃÆ'‚ 
> > > > > > > Try the Mach3 | Config | General Config | IgnoreÃÆ'‚ M Calls while loading option.
> > > > > > > ÃÆ'‚ 
> > > > > > > Otherwise there may be a way to tell if it is a tool path regeneration inside the M84 and skip doing anything.
> > > > > > > ÃÆ'‚ 
> > > > > > > Regards
> > > > > > > TKÃÆ'‚ 
> > > > > > >
> > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > Sent: Monday, July 30, 2012 10:22 AM
> > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'‚ 
> > > > > > > Ok....the problem seems to stem from mach trying to generate the toolpath. I have just been pressing cancel. It wants to hang up on the m84.
> > > > > > >
> > > > > > > If I got to the top of the screen and select view/regen toolpath....the same thing will happen.
> > > > > > >
> > > > > > > Ideas???
> > > > > > >
> > > > > > > Mike
> > > > > > >
> > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > > > >
> > > > > > > > Tom,
> > > > > > > >
> > > > > > > > I installed the lockdown version. It still does the same things. If I use the load button, or the edit button to open or modify a program with a notify plugin......it starts on its own on return to mach.
> > > > > > > >
> > > > > > > > It does not do this with a regular g code pgm.
> > > > > > > >
> > > > > > > > I am using the turn version with an different screenset.
> > > > > > > > ??????
> > > > > > > >
> > > > > > > > Mike
> > > > > > > >
> > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > > > > >
> > > > > > > > > Tom,
> > > > > > > > >
> > > > > > > > > Yours may not have worked because I may have not followed your directions properly.....lol. It let me know where to look, though.
> > > > > > > > >
> > > > > > > > > I left the DoTap(-ZDist, RetractRate, TPI); in because I need the spindle axis to return to exactly where it started when doing the multiple passes necessary for the operation and I didn't know how to do it otherwise. I'm open to suggestions, though. :-)
> > > > > > > > >
> > > > > > > > > I didn't think to try running a regular program without plugin calls to see if it would do the self start. I'll try that first to maybe narrow down things a bit.
> > > > > > > > >
> > > > > > > > > Thanks,
> > > > > > > > >
> > > > > > > > > Mike
> > > > > > > > >
> > > > > > > > > On Jul 29, 2012, at 5:19 PM, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > > Hi Mike,
> > > > > > > > > >
> > > > > > > > > > Not sure why mine didn't work. But anyways yours is good.
> > > > > > > > > >
> > > > > > > > > > I think if you remove the line:
> > > > > > > > > >
> > > > > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > > > > >
> > > > > > > > > > Then it will do a rapid move back in Z rather than an "unTap" type of move so it will be faster.
> > > > > > > > > >
> > > > > > > > > > I haven't seen that weird self start of Mach3. Hard to imagine how our Plugin could be doing that. Please try the lockdown version to see if it persists.
> > > > > > > > > >
> > > > > > > > > > Regards
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > Sent: Saturday, July 28, 2012 11:31 AM
> > > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Tom,
> > > > > > > > > >
> > > > > > > > > > I made the adjustments you suggested to the notifytap program, and I could not get it to run the tap sequence. It would position itself in preparation, then just skip over the tap part and move on to the code after.
> > > > > > > > > >
> > > > > > > > > > I fiddled around with it and just ended up adding some lines in the c program to do the retract. It seems to work ok. I uploaded the c prog and my XML to my folder. Could you let me know if it is an acceptable way to do the retract?
> > > > > > > > > >
> > > > > > > > > > Also, an odd thing happens when using the edit button in Mach. I press the button, and it brings up the txt file. I make my adjustment, save it, and when I close the file the program immediately runs in mach without my consent. If I hit the emergency stop, the program stops.....but when I re-initialize it will start again where it was when I hit the E-stop. I wonder if this is just some weird anomaly in MachTurn. I am using 3.043.062....because I heard that the lockdown version had problems in Turn. Maybe I should try the lockdown.
> > > > > > > > > >
> > > > > > > > > > Any ideas on that?
> > > > > > > > > >
> > > > > > > > > > Thanks,
> > > > > > > > > >
> > > > > > > > > > Mike
> > > > > > > > > >
> > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Michael Niksch <michaelniksch@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Tom,
> > > > > > > > > > >
> > > > > > > > > > > Yes, adding code before and after should be fine. I will remove the lines you suggested and give it a go Monday morning.
> > > > > > > > > > >
> > > > > > > > > > > Thanks very much,
> > > > > > > > > > >
> > > > > > > > > > > Mike
> > > > > > > > > > >
> > > > > > > > > > > On Jul 27, 2012, at 5:16 PM, Tom Kerekes <tk@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > > Hi Mike,
> > > > > > > > > > > >
> > > > > > > > > > > > I would just add the X plunge in GCode before doing the Rigid Tap operation. Shouldn't that work for you? That might delay a bit after the X plunge before the Spindle starts rotating. Also in the GCode after doing the "Rigid Tap" motion you can add a retract and rapid move in Z back to the starting point.
> > > > > > > > > > > >
> > > > > > > > > > > > To eliminate the Rigid Tap "rewind" motion remove the following lines from the C program.
> > > > > > > > > > > >
> > > > > > > > > > > > // retract fully
> > > > > > > > > > > > DoTap(-ZDist, RetractRate, TPI);
> > > > > > > > > > > > and also add the +ZDist as shown below
> > > > > > > > > > > >
> > > > > > > > > > > > Delay_sec(1.0);
> > > > > > > > > > > > Move(ZAXIS,Z0+ZDist); // move to where we ended up
> > > > > > > > > > > > while (!CheckDone(ZAXIS)) ;
> > > > > > > > > > > > Let me know how much of this works :}
> > > > > > > > > > > >
> > > > > > > > > > > > TK
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > > Sent: Friday, July 27, 2012 1:35 PM
> > > > > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > Tom,
> > > > > > > > > > > >
> > > > > > > > > > > > I mean I did not set up the spindle as a motor output in Mach.
> > > > > > > > > > > >
> > > > > > > > > > > > I copied over the rigid tapping script and put the proper c program into the plugin and had it rigid tapping in air on the grinder. It looked like it should, and I didn't get any error messages.
> > > > > > > > > > > >
> > > > > > > > > > > > If the machine will tap without any encoder following error at 700rpm, then I feel like it should thread grind at 1 rpm without trouble...lol.
> > > > > > > > > > > >
> > > > > > > > > > > > So after looking over the c program for the rigid tapping, I must admit that there is a fair amount of stuff I don't follow and I need some help to modify it to thread grind.
> > > > > > > > > > > >
> > > > > > > > > > > > I basically need to do exactly what the rigid tap does in z and spindle movement, but add a plunge in x (Lathe setup) at the beginning of the sequence and a retract in x at the end of the thread before the rewind. Does that make sense the way I described it?
> > > > > > > > > > > >
> > > > > > > > > > > > Actually, the rewind (tap retract) is not necessary, I just need to be able to run the sequence over and over from the same start point on the spindle and z for multiple passes.
> > > > > > > > > > > >
> > > > > > > > > > > > Let me know what you think.
> > > > > > > > > > > >
> > > > > > > > > > > > Thanks,
> > > > > > > > > > > >
> > > > > > > > > > > > Mike
> > > > > > > > > > > >
> > > > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > > > >
> > > > > > > > > > > > > Hi Mike,
> > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡
> > > > > > > > > > > > > I'm not sure I follow all that.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ But if your happy, I'm happy.
> > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡
> > > > > > > > > > > > > Regards
> > > > > > > > > > > > > TK
> > > > > > > > > > > > >
> > > > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > > > Sent: Friday, July 27, 2012 8:09 AM
> > > > > > > > > > > > > Subject: [DynoMotion] Re: Mach 3 Spindle struggle
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡
> > > > > > > > > > > > >
> > > > > > > > > > > > > Tom, after a nights sleep and some Mach reading.....along with your suggestions.........the spindle is working well. I did not set up a spindle in Mach after all.
> > > > > > > > > > > > >
> > > > > > > > > > > > > I hope that is right.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Its working right so far.
> > > > > > > > > > > > >
> > > > > > > > > > > > > On to the rigid tap journey.
> > > > > > > > > > > > >
> > > > > > > > > > > > > Thanks,
> > > > > > > > > > > > >
> > > > > > > > > > > > > Mike
> > > > > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, "michaelthomasn" <michaelniksch@> wrote:
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Oh....Ok. It works great as far as direction goes, now.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > I don't know what I saved/sent.....I thought it was right, but obviously not.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Accurate speed is now what I'm after.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > My encoder is 5000 lines, mounted on the servo, and the servo turns 2.66666 times per revolution of the spindle....so I come up with 53332.2 counts per revolution.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > So "FACTOR" ....would be 53332.2/60 or 888.87? I think. Does that look right?
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > How do I set up the spindle in Mach motor config?
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > What is it looking for? It shows steps per unit.....but I know that doesn't really relate to a spindle.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Does the Mach spindle pulley affect things as well? I would think I just leave that at 1 for the ratio.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > I messed with it for a bit but didn't seem to make much headway.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Thanks again,
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Mike
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Hi Mike,
> > > > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡
> > > > > > > > > > > > > > > Yes the example SpindleMach3Jogs expects you to add code to handle the spindle direction control for your system.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ Switch relays or whatever.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ I assume your spindle can jog + and - like an
> > servo?ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ I've uploaded a file to your folder that may work for you.
> > > > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡
> > > > > > > > > > > > > > > The XML file doesn't seem to have any Dynomotion Configuration in it.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ Did you upload the right file?ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ Did you save the Mach3 Settings?
> > > > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡
> > > > > > > > > > > > > > > You must uncheck the Disable Spindle Relays checkbox for the Plugins to receive all the Spindle Messages.
> > > > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡
> > > > > > > > > > > > > > > Let me know haw far this gets you.
> > > > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡
> > > > > > > > > > > > > > > Regards
> > > > > > > > > > > > > > > TK
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > From: michaelthomasn <michaelniksch@>
> > > > > > > > > > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > > > > > > > > > Sent: Thursday, July 26, 2012 3:12 PM
> > > > > > > > > > > > > > > Subject: [DynoMotion] Mach 3 Spindle struggle
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡
> > > > > > > > > > > > > > > Tom,
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > I have been away from this machine for a while (studer s35 grinder) and have finally attached an encoder to the spindle in preparation for thread grinding.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > I got everything going in Kmotioncnc without much trouble, but am having a tough time in Mach.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > The machine jogs and homes just fine, but I cannot get the spindle to work properly.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > After setting up the spindle output in Mach, it will only turn in one direction.....regardless of m3 or m4.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > I have attached my XML and spindle prog in my folder.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Please help.....I've tried most everything.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > http://tech.groups.yahoo.com/group/DynoMotion/files/michaelthomas/
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Mike
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>